diff mbox series

[4/5] xfs: xfs_fsr requires working preallocation support

Message ID 20181110115145.30356-5-hch@lst.de (mailing list archive)
State Accepted
Headers show
Series [1/5] generic: move prealloc-enabled fsx to separate tests | expand

Commit Message

Christoph Hellwig Nov. 10, 2018, 11:51 a.m. UTC
Check that the file system actually supports preallocation for defrag
tests that end up calling xfs_fsr, as they can't be supported in
always_cow mode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 common/defrag | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/common/defrag b/common/defrag
index df249dfd..79485f0d 100644
--- a/common/defrag
+++ b/common/defrag
@@ -8,6 +8,7 @@  _require_defrag()
 {
     case "$FSTYP" in
     xfs)
+        _require_xfs_io_command "falloc"
         DEFRAG_PROG="$XFS_FSR_PROG"
 	;;
     ext4|ext4dev)