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>
This commit is contained in:
Christoph Hellwig
2018-11-10 12:51:43 +01:00
committed by Eryu Guan
parent 31735e301e
commit 09e94f84d9
24 changed files with 26 additions and 2 deletions
+1
View File
@@ -34,6 +34,7 @@ _supported_os Linux
_supported_fs xfs
_require_cp_reflink
_require_scratch_reflink
_require_xfs_io_command "fpunch"
_require_xfs_io_error_injection "refcount_finish_one"
rm -f $seqres.full