From d26e6be1290c27c4639439570ad0c8bf9ce5a5db Mon Sep 17 00:00:00 2001 From: Liu Yiding Date: Thu, 14 Apr 2022 10:34:47 +0800 Subject: [PATCH] common/rc: Skip virtiofs when _require_exportfs 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/rc b/common/rc index 4c24e1b3..83e932cf 100644 --- a/common/rc +++ b/common/rc @@ -3595,6 +3595,14 @@ _require_freeze() _require_exportfs() { _require_test_program "open_by_handle" + + # virtiofs doesn't support open_by_handle_at(2) yet, though the syscall + # doesn't return error. It requires stable FUSE nodeids. + # This feature is expected to be implemented in the future in virtiofs, + # and this check should be removed by then. + [ $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.39.5