GNOME Bugzilla – Bug 772894
g_volume_monitor_get_volume_for_uuid not working
Last modified: 2016-11-10 08:45:49 UTC
Not sure where to post as it's a fault with the core GIO, but can't find that in BugZilla anywhere, gvfs is only place I can find that references it. The problem relates to g_volume_monitor_get_volume_for_uuid() in GVolumeMonitor and g_volume_get_uuid() in GVolume. g_volume_get_uuid() in GVolume returns NULL even though g_volume_get_identifier(volume, "uuid") returns the character string of the UUID. g_volume_monitor_get_volume_for_uuid() in GVolumeMonitor won't return a volume even if passed the UUID of a valid, connected volume. I'm using GTK version 2
Thanks for your bug report! You are right, volume->uuid is not set by udisks2 volume monitor...
Created attachment 337860 [details] [review] udisks2: Add support for uuid gvfs_udisks2_volume_get_uuid returns NULL regardless of the output from udisks_block_get_id_uuid currently. Set volume->uuid property and handle its changes properly.
Attachment 337860 [details] pushed as c5cbb90 - udisks2: Add support for uuid
*** Bug 686798 has been marked as a duplicate of this bug. ***