]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
punch-alternating: use the block size reported by the fs for punching
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Feb 2016 23:51:17 +0000 (10:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Feb 2016 23:51:17 +0000 (10:51 +1100)
commitf9ff240882ee1343828834a9265f64da605d4c9b
tree6b2f4fc28b6692b800f9ea05e9b8016f4a2c4557
parent004197958e7536ece2332f28675d8cb44a39667c
punch-alternating: use the block size reported by the fs for punching

When we're trying to punch alternating blocks out of a file, use the
bsize reported by fstatfs so that we can punch out single blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/punch-alternating.c