Skip to content

Commit

Permalink
simple-test: use 'umount -t /path/to/mnt' to avoid umounting extra mnts
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Sep 17, 2014
1 parent 37a08db commit 0a7059c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a7059c

Please sign in to comment.