Re: FYI: how to (really) cleanly shutdown the system when root is on multiple stacked block devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/26/2010 08:36 PM, Arno Wagner wrote:
On Sat, Jun 26, 2010 at 04:21:52PM +0200, Christoph Anton Mitterer wrote:

And I'm not even sure if flushing alone is enough,... or where one needs
something like barriers...

Barriesrs are a filesystem concept and play no role here.

Nope, "IO barriers" here are block level functionality.

See Documentation/block/barrier.txt  in kernel
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/block/barrier.txt;hb=HEAD

(yes, it is confusing:-)

Flushing ("fdatasync" or "fsunc") is not enough in some cases,
hence the ro-remount, which is.

fsycn currently in kerenl issues barrier in block layer and then waits for it.

But if because ever reads can cause some metadata updates (last access on file stamp),
remounting read-only is there.

Milan
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux