]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: don't assume preallocation is always supported on XFS
authorChristoph Hellwig <hch@lst.de>
Sat, 10 Nov 2018 11:51:43 +0000 (12:51 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Nov 2018 13:16:42 +0000 (21:16 +0800)
commit09e94f84d929ca21f9557197d92fe32644d7b53f
tree44eed209b4590eef510e353c81c1792324409bc6
parent31735e301efc80c990c23c0fa0765ebd4fd42313
xfs: don't assume preallocation is always supported on XFS

The always_cow mode can't usefull preallocate space gіven that it
always has to write out of place, and thus will reject falloc or
ioctl calls to preallocate space in a file.  Add explicit checks for
preallocation support in various XFS-specific tests to support this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
24 files changed:
tests/xfs/009
tests/xfs/072
tests/xfs/084
tests/xfs/104
tests/xfs/128
tests/xfs/164
tests/xfs/165
tests/xfs/166
tests/xfs/167
tests/xfs/231
tests/xfs/232
tests/xfs/242
tests/xfs/250
tests/xfs/280
tests/xfs/294
tests/xfs/312
tests/xfs/313
tests/xfs/316
tests/xfs/324
tests/xfs/326
tests/xfs/328
tests/xfs/330
tests/xfs/444
tests/xfs/445