From 0a41a032a480b2305fd51f13e9ce2b18309530c0 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 17 Sep 2014 13:32:39 +0400 Subject: [PATCH] simple-test: fix awk syntax for unmount only by fstype But we could just use 'umount -t' I guess. --- simple-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-test.sh b/simple-test.sh index e75fee0..53dde4d 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -88,7 +88,7 @@ function do_read_operations() } function cleanup() { - cat /proc/mounts | awk '/$3 = simplefs/ {print $2}' | xargs -r umount + cat /proc/mounts | awk '$3 ~ /^simplefs$/ {print $2}' | xargs -r umount lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko" # TODO: prompt deletion