GNOME Bugzilla – Bug 575270
GVolumeMonitor::mount-pre-unmount not being emitted
Last modified: 2009-03-26 14:02:11 UTC
At first I thought it was some glitch in my dev environment, but I upgraded everything involved to latest trunk and still see this. I you run gvfs-mount -o and unmount some usb stick (either through nautilus or gvfs-mount), the callback for "mount-pre-unmount" isn't ever called. I'll try to investigate this further...
Created attachment 131029 [details] [review] Fix for the gio side
Can you split it out into two patches? That way we can commit somthing to 2.20.1 that emits mount-pre-unmount, and add the GMount::pre-unmount signal in 2.22.
Sure! doing that now, want me to put the latter in a new bug? I've also submitted bug #576083 for the GVfs side
Created attachment 131037 [details] [review] Updated patch, don't include the GMount::pre-unmount changes
Looks good to commit. And no need for a new bug for the rest of the patch.
Just committed it, thanks! Actually, before comment #5, I already opened bug #576104 to add GMount::pre-unmount, so I'll close this bug. 2009-03-26 Carlos Garnacho <carlosg@gnome.org> Bug 575270 – GVolumeMonitor::mount-pre-unmount not being emitted * gunixmount.c (eject_unmount_cb) (eject_unmount_do_cb) (eject_unmount_do): Emit ::mount-pre-unmount and wait 500msec before actually trying to unmount.