RE: dirty buffers and umount/remount

Hua Zhong (hzhong@cisco.com)
Tue, 11 Jun 2002 01:12:10 -0700


> 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/