mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-26 23:44:08 +02:00
simple-test: use 'umount -t /path/to/mnt' to avoid umounting extra mnts
This commit is contained in:
parent
37a08dbe63
commit
0a7059cd35
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user