! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
sshfs doesn't properly unmount with this plugin.
Status:
RESOLVED: WONTFIX
Product:
Xfce4-mount-plugin
Component:
General

Comments

Description John Tyree 2009-01-17 09:05:09 CET
It seems to be reading fstab and getting 
sshfs#<server>:<path>	<mount point>	etc.... 

or something but /etc/mtab only knows the filesystem as
<server>:<path>	<mount point>

so when it queries mtab for sshfs#<serve..><.. oit> it doesn't get a match.

It spits out the following to terminal when trying to umount, but raises no other errors:
umount:sshfs#<server>:<mount point> is not mounted (according to mtab)

Then if you click the plugin again, it shows the file system as still being mounted.
Comment 1 John Tyree 2009-01-17 09:07:36 CET
Note. manually running:

umount <server>:<path> works fine. So if the plugin could just clip off the "sshfs#" from the start of the string, it should fix this issue. I don't know enough about C to submit a patch for what looks like an easy If:then fix.
Comment 2 Fabian Nowak editbugs 2009-01-18 19:54:18 CET
(In reply to comment #1)
> Note. manually running:
> 
> umount <server>:<path> works fine. So if the plugin could just clip off the
> "sshfs#" from the start of the string, it should fix this issue. I don't know
> enough about C to submit a patch for what looks like an easy If:then fix.

I am sorry, but on my system (Debian unstable as of today) I cannot even umount it at all; have to use fusermount -u therefore. Tried both mount point and device point, both fail; only as root can I umount from the mount point; or fusermount -u as regular user. 

You can try to use a custom umount string with the mount point %m instead of the device point %d and see if that works out well.

I am not sure whether I should add fusermount -u for sshfs automatically, as your umount seems to partially support that already.
Comment 3 Fabian Nowak editbugs 2009-02-16 22:00:42 CET
(In reply to comment #1)
> Note. manually running:
> 
> umount <server>:<path> works fine. So if the plugin could just clip off the
> "sshfs#" from the start of the string, it should fix this issue. I don't know
> enough about C to submit a patch for what looks like an easy If:then fix.

Seems like you are root most of the time; cause as root I can also "umount mysshfilesystem", otherwise I will obtain complaints about mtab and fstab not fitting, that's due to sshfs, please file bug reports to them if you dislike that behaviour.

There's however the option left in the mount plugin to specify "fusermount -u %m" as umount command for that very purpose; but I won't check for sshfs from inside the plugin and do fusermount instead then, because this would break the concept of allowing users to specify their very own umount commands such as "pumount". 

Cheers

Fabian

Bug #4816

Reported by:
John Tyree
Reported on: 2009-01-17
Last modified on: 2009-07-15

People

Assignee:
Fabian Nowak
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information