mirror of
https://github.com/psankar/simplefs.git
synced 2025-09-26 11:29:47 +02:00
simple-test: grep out by 3 column (fs type) from /proc/mounts
This commit is contained in:
parent
e1df255a33
commit
b84270ee83
@ -88,7 +88,7 @@ function do_read_operations()
|
||||
}
|
||||
function cleanup()
|
||||
{
|
||||
cat /proc/mounts | fgrep ' simplefs ' | awk '{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"
|
||||
|
||||
# TODO: prompt deletion
|
||||
|
Loading…
x
Reference in New Issue
Block a user