mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-24 06:24:38 +02:00
simple-test: fix awk syntax for unmount only by fstype
But we could just use 'umount -t' I guess.
This commit is contained in:
parent
b84270ee83
commit
0a41a032a4
@ -88,7 +88,7 @@ function do_read_operations()
|
|||||||
}
|
}
|
||||||
function cleanup()
|
function cleanup()
|
||||||
{
|
{
|
||||||
cat /proc/mounts | awk '/$3 = simplefs/ {print $2}' | xargs -r umount
|
cat /proc/mounts | awk '$3 ~ /^simplefs$/ {print $2}' | xargs -r umount
|
||||||
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