[PATCH] common/rc: update _require_seek_data_hole()

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



_require_seek_data_hole() could not skip tests if filesystem does not support
fallocate or unwritten extent.  We could update _require_seek_data_hole() to
catch both of them.

Signed-off-by: Xiao Yang <yangx.jy@xxxxxxxxxxxxxx>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index fa1314c..b064f53 100644
--- a/common/rc
+++ b/common/rc
@@ -2297,7 +2297,7 @@ _require_seek_data_hole()
     testfile=$TEST_DIR/$$.seek
     testseek=`$here/src/seek_sanity_test -t $testfile 2>&1`
     rm -f $testfile &>/dev/null
-    echo $testseek | grep -q "Kernel does not support" && \
+    echo $testseek | grep -q "not support" && \
         _notrun "File system does not support llseek(2) SEEK_DATA/HOLE"
 }
 
-- 
1.8.3.1



--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux