]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: Skip virtiofs when _require_exportfs
authorLiu Yiding <liuyd.fnst@fujitsu.com>
Thu, 14 Apr 2022 02:34:47 +0000 (10:34 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 Apr 2022 12:30:48 +0000 (20:30 +0800)
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>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc

index 4c24e1b30706dcb32d4204568ce19ee826e1fdb0..83e932cf28bb2a948bb44fe03ed74a0f75c38dcd 100644 (file)
--- 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"