]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libfrog: always fsync when flushing a device
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
commit7c8e6ac778c99620d7b67c4067cba26c72c81549
tree831f733a0258ce0221b92d9b2284843234b1a27f
parent14fb361365078a9950dcb919a652c3f5b60b4fff
libfrog: always fsync when flushing a device

Always call fsync() when we're flushing a device, even if it is a block
device.  It's probably redundant to call fsync /and/ BLKFLSBUF, but the
latter has odd behavior so we want to make sure the standard flush
methods have a chance to run first.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/linux.c