generic: Add test for fallocate() PUNCH_HOLE|KEEP_SIZE

Verify that punching holes at ends of files does not alter st_size
if we pass FALLOC_FL_KEEP_SIZE to fallocate().

[eguan: add comment about xfs_io's fpunch KEEP_SIZE flag]

Signed-off-by: Calvin Owens <calvinowens@fb.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Calvin Owens
2017-03-31 18:13:41 -07:00
committed by Eryu Guan
parent 2fd80caf71
commit 9d0c046534
3 changed files with 70 additions and 0 deletions
+1
View File
@@ -422,3 +422,4 @@
417 auto quick shutdown log
418 auto rw
419 auto quick encrypt
420 auto quick punch