[PATCH 1/3] xfstests: add helper for zero range support check

Eric Whitney enwlinux at gmail.com
Mon Apr 21 15:40:23 CDT 2014


Add a helper function to verify fallocate zero range support in a style
similar to _require_xfs_io_falloc_collapse(), etc.

Signed-off-by: Eric Whitney <enwlinux at gmail.com>
---
 common/rc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/common/rc b/common/rc
index acf419b..bcda96a 100644
--- a/common/rc
+++ b/common/rc
@@ -1375,6 +1375,13 @@ _require_xfs_io_falloc_collapse()
 	_require_xfs_io_command "fcollapse"
 }
 
+# check that xfs_io, kernel, and filesystem all support fallocate with zero
+# range
+_require_xfs_io_falloc_zero()
+{
+	_require_xfs_io_command "fzero"
+}
+
 # check that xfs_io, kernel and filesystem support fiemap
 _require_xfs_io_fiemap()
 {
-- 
1.8.3.2



More information about the xfs mailing list