[PATCH] common: fix _require_xfs_io_command for specific swapext versions

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



The xfs_io command (only in Darricks trees and not upstream yet)
supports the -v switch to select the swapext version.  When the selected
swapext version is not supported it reports a 'version must be $foo'
message.  Parse that and don't _notfun the test cases.

This fixes various generic tests trying to use the vfs version that
doesn't exist in most branches implementing the swapext command.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/rc b/common/rc
index 26a26085..d8a0b19b 100644
--- a/common/rc
+++ b/common/rc
@@ -2706,6 +2706,8 @@ _require_xfs_io_command()
 			_notrun "xfs_io $command $param ioctl support is missing"
 		echo $testio | grep -q "Operation not supported" && \
 			_notrun "xfs_io $command $param kernel support is missing"
+		echo $testio | grep -q "version must" && \
+			_notrun "xfs_io $command $param kernel support is missing"
 		rm -f $testfile.1
 		param_checked="$param"
 		;;
-- 
2.39.2





[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