Re: ext4 barrier on SCSI vs SATA?

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

On 05/14/12 11:02, Jan Kara wrote:
However the flush was always available (I think), in fact databases
would not corrupt (not even above ext4 nobarrier, above a raid5
without barriers) if fsync was called at proper times.
   This is not true. Both cache flushes and barriers were implemented by
the same mechanism in older kernels. Thus if the device did not properly
propagate the barrier capability, then fsync did not provide any guarantees
in case of power failure (if there are volalile write caches in the storage

Oh! Thanks I had not realized this.

So, if barrier IS provided by the underlying blockdevice but filesystem is nevertheless mounted as nobarrier (as an explicit option) would database flushes (fsync) for files on THAT filesystem work properly or not?

Thanks for your insight
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Reiser Filesystem Development]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux