From 0a7059cd352df11c6738e854f37d0aa169a3139d Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 17 Sep 2014 13:34:51 +0400 Subject: [PATCH] simple-test: use 'umount -t /path/to/mnt' to avoid umounting extra mnts --- simple-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-test.sh b/simple-test.sh index 93ba06b..72fc33a 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -89,7 +89,7 @@ function do_read_operations() function cleanup() { cd "$root_pwd" - cat /proc/mounts | awk '$3 ~ /^simplefs$/ {print $2}' | xargs -r umount + umount -t simplefs "$test_mount_point" lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko" # TODO: prompt deletion