From 37a08dbe631bbe3428c6609cf6bf5696cd51ec5b Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 17 Sep 2014 13:33:37 +0400 Subject: [PATCH] simple-test: change dir to root before unmount, to avoid opened fds --- simple-test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/simple-test.sh b/simple-test.sh index 53dde4d..93ba06b 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -88,6 +88,7 @@ function do_read_operations() } function cleanup() { + cd "$root_pwd" cat /proc/mounts | awk '$3 ~ /^simplefs$/ {print $2}' | xargs -r umount lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko"