Re: fsync() and LVM

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

 



On Tue, 17 Mar 2009, Marco Colombo wrote:

> It seems to me that in my setup, disabling the caches on the disks does
> bring data to the platters, and that noone is "lying" about fsync.
> 
> Now I'm _really_ confused.

That's been my claim all along - that the broken fsync only affects
on disk cache.  LVM itself does not reorder writes in any way - it just
fails to pass along the write barrier.  fsync() does *start* writing
the dirty buffers (implemented in the fs code).  It just doesn't 
wait for the writes to finish getting to the platters.  Apparently,
it does wait for the write to get to the drive (but I'm not certain).

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux