commit | 2c1034498c1aac289fc1752389b8881a73abc7c9 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Wed Feb 19 16:36:05 2020 -0800 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Fri Feb 28 07:36:00 2020 -0800 |
tree | 9c5d61f69b4c21ad08e7b126efb1a1c4e6047529 | |
parent | 9b8f2d886e4bb705bbf2012d83df5979c908b18a [diff] |
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>