diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2023-03-17 09:56:55 +0000 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2023-05-12 23:29:03 +0100 |
commit | 4c177c904778c45ebd992b7f651af4f0039c550c (patch) | |
tree | 7d8405daf0fcca86d83ad502610b69a3387ec3f2 /xfstests/mount.fuse.passthrough | |
parent | ad1abf3f2e15d9d23d0a2c60aec6a011762ccfa6 (diff) | |
download | fuse-master.tar.gz |
Diffstat (limited to 'xfstests/mount.fuse.passthrough')
-rwxr-xr-x | xfstests/mount.fuse.passthrough | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xfstests/mount.fuse.passthrough b/xfstests/mount.fuse.passthrough new file mode 100755 index 0000000..47208f8 --- /dev/null +++ b/xfstests/mount.fuse.passthrough @@ -0,0 +1,17 @@ +#!/bin/bash + +ulimit -n 1048576 + +# It would be easier if we could just set SCRATCH_DEV and TEST_DEV to the source directory +# path in local.options. Unfortunately, setting these variables to a path seems get +# xfstests all worked up (even though it should treat these as opaque values), and it +# refuses to even start running any tests). +dev="$1" +shift +if [ "$dev" = "${SCRATCH_DEV}" ]; then + source="${SCRATCH_SOURCE}" +else + source="${TEST_SOURCE}" +fi + +exec "$PASSTHROUGH_PATH" -o fsname=$dev,allow_other "${source}" "$@" |