From 747e99468237caeded8d63741b59393cbbbdfc08 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 15 Feb 2020 14:38:13 +0100 Subject: Add contrib/cleanup-tmp-mounts.sh Useful when you have lots of broken mounts after something in the test suite went wrong. --- contrib/cleanup-tmp-mounts.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 contrib/cleanup-tmp-mounts.sh diff --git a/contrib/cleanup-tmp-mounts.sh b/contrib/cleanup-tmp-mounts.sh new file mode 100755 index 0000000..2429569 --- /dev/null +++ b/contrib/cleanup-tmp-mounts.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Umount all FUSE filesystems mounted below /tmp and /var/tmp. +# +# Useful when you have lots of broken mounts after something in +# the test suite went wrong. + +set -eu + +MOUNTS=$(mount | grep ' type fuse\.' | grep 'on /var/tmp/\|on /tmp/' | cut -d' ' -f 3) + +for i in $MOUNTS ; do + echo "Unmounting $i" + fusermount -u -z "$i" +done -- cgit v1.2.3