Skip to content

Commit

Permalink
simple-test: change dir to root before unmount, to avoid opened fds
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Sep 17, 2014
1 parent 0a41a03 commit 37a08db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simple-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 37a08db

Please sign in to comment.