From: Liu Yiding Date: Thu, 14 Apr 2022 02:34:47 +0000 (+0800) Subject: common/rc: Skip virtiofs when _require_exportfs X-Git-Tag: v2022.05.01~26 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d26e6be1290c27c4639439570ad0c8bf9ce5a5db;p=xfstests-dev.git 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 --- 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"