RE: dirty buffers and umount/remount

From: Hua Zhong (hzhong@cisco.com)
Date: Tue Jun 11 2002 - 03:12:10 EST


> I am wondering if 3) is necessary or not. When the filesystem is remounted
> from rw to ro, are all dirty buffers related to it flushed to disk? How
> about umount?
>
> The last related question: is the kdev field in the buffer head
> the physical
> block device (i.e., /dev/hda) or the logical block device (i.e.,
> /dev/hda7)?

auh..it must be the logical device which is passed as the mount point..

I also checked the mount/umount code, and didn't find any part does the
flush.
So I guess data can still be lost after an unmount?

> Thanks a lot.
>
> Hua
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:21 EST