summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-09-26 18:42:58 -0700
committerZorro Lang <zlang@kernel.org>2023-10-05 22:41:09 +0800
commit9b88ac7ee50801254d8f8aad902bf39e269e257e (patch)
treea6c3e95927341c93e53405d3e0ff14f9831e4995 /common
parent4609e9481fe879f539e433b0710f53401d13d4ba (diff)
btrfs/300: check existence of unshare arguments
Make sure the installed unshare binary supports all the arguments that it wants to use. The unshare program on my system (Ubuntu 22.04) doesn't support --map-auto, so this test fails unnecessarily. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r--common/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rc b/common/rc
index 95d397b0..84fad4b8 100644
--- a/common/rc
+++ b/common/rc
@@ -5288,7 +5288,7 @@ _soak_loop_running() {
_require_unshare() {
unshare -f -r -m -p -U $@ true &>/dev/null || \
- _notrun "unshare: command not found, should be in util-linux"
+ _notrun "unshare $*: command not found, should be in util-linux"
}
# Return a random file in a directory. A directory is *not* followed