simple-test: use 'umount -t /path/to/mnt' to avoid umounting extra mnts

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

View File

@ -89,7 +89,7 @@ function do_read_operations()
function cleanup() function cleanup()
{ {
cd "$root_pwd" 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" lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko"
# TODO: prompt deletion # TODO: prompt deletion