[PATCH] common/rc: Skip virtiofs when _require_exportfs

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



open_by_handle_at(2) is not supported by virtio-fs.
Reference:
https://gitlab.com/virtio-fs/qemu/-/issues/10

Signed-off-by: Liu Yiding <liuyd.fnst@xxxxxxxxxxx>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/rc b/common/rc
index 17629801..5617afc1 100644
--- a/common/rc
+++ b/common/rc
@@ -3587,6 +3587,8 @@ _require_freeze()
 _require_exportfs()
 {
 	_require_test_program "open_by_handle"
+	[ $FSTYP == "virtiofs" ] && \
+		_notrun "$FSTYP doesn't support open_by_handle_at(2)"
 	mkdir -p "$TEST_DIR"/exportfs_test
 	$here/src/open_by_handle -c "$TEST_DIR"/exportfs_test 2>&1 \
 		|| _notrun "$FSTYP does not support NFS export"
-- 
2.31.1






[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