simple-test: change dir to root before unmount, to avoid opened fds

This commit is contained in:
Azat Khuzhin 2014-09-17 13:33:37 +04:00
parent 0a41a032a4
commit 37a08dbe63

View File

@ -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"