You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say a previous run of a program using this library mounted a FUSE instance with fs.Mount but was shutdown with SIGKILL before it could unmount the mount.
Is there a way to unmount abandoned mounts without requiring a user do so manually?
I see that fuse.NewServer attempts to mount and will fail if there is an abandoned mount. Meanwhile, the unmount function is not exported, so a client cannot call it directly.
The text was updated successfully, but these errors were encountered:
$ cat ~/bin/kill-all-fuse.sh
#!/bin/sh
set -eux
cd /sys/fs/fuse/connections
for f in *; do
echo $f
echo hoi > $f/abort
done
for f in $(mount|grep fuse|grep tmp| awk '{print $3;}'); do
fusermount -u $f
done
I wish I could automate this better, but I don't know how to get connection number from the fuse mount.
Thanks! That's a handy script. Also, glad I didn't miss anything obvious in the documentation.
How would you feel about exporting unmount (and its Darwin equivalent) in one form or another? Alternatively, perhaps MountOptions could allow a user to request a mount to be cleaned up before attempting to mount again?
Let's say a previous run of a program using this library mounted a FUSE instance with fs.Mount but was shutdown with
SIGKILL
before it could unmount the mount.Is there a way to unmount abandoned mounts without requiring a user do so manually?
I see that fuse.NewServer attempts to mount and will fail if there is an abandoned mount. Meanwhile, the unmount function is not exported, so a client cannot call it directly.
The text was updated successfully, but these errors were encountered: