GNOME Bugzilla – Bug 708288
Force unmount call doesn't do anything
Last modified: 2015-03-10 10:28:46 UTC
After unplugging an iOS device, the mount is still there because gvfsd-afc doesn't exit. It seems that the call to g_vfs_backend_force_unmount() doesn't do anything.
the gphoto2 backend would likely have the same problem if you used this patch: https://bugzilla.gnome.org/show_bug.cgi?id=708316
I've committed a work-around for this: commit 28cb50541ffd369cd8f7630575a02c12e1cb42fc Author: Bastien Nocera <hadess@hadess.net> Date: Tue Jun 3 16:40:22 2014 +0200 afc: Work-around mounts not disappearing when disconnecting device See https://bugzilla.gnome.org/show_bug.cgi?id=708288
Created attachment 298902 [details] [review] afc: Fix force unmount of devices The exit(1) workaround does not work for me (f21 gvfs package) when unplugging a gvfs-mounted ipod touch without unmounting it first (the gvfsd-afc process is still alive). The attached patch works for me in this scenario.
Comment on attachment 298902 [details] [review] afc: Fix force unmount of devices Yes! And to the stable branches as well please.
Pushed as commit 32adf492a9 and to the gnome-3-14 branch. There was a conflict when trying to cherry-pick to the gnome-3-12 branch (probably not too hard to solve), just let me know if you want it there too.