mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-22 13:34:26 +02:00
simple-test: change dir to root before unmount, to avoid opened fds
This commit is contained in:
parent
0a41a032a4
commit
37a08dbe63
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user