diff mbox series

common/rc: Skip virtiofs when _require_exportfs

Message ID 20220414023447.1575844-1-liuyd.fnst@fujitsu.com (mailing list archive)
State New, archived
Headers show
Series common/rc: Skip virtiofs when _require_exportfs | expand

Commit Message

liuyd.fnst@fujitsu.com April 14, 2022, 2:34 a.m. UTC
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@fujitsu.com>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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"