1 --- xfce4-mount-plugin-0.5.5/panel-plugin/devices.c~ 2010-11-13 20:45:44.969354996 +0100
2 +++ xfce4-mount-plugin-0.5.5/panel-plugin/devices.c 2010-11-13 21:02:11.907383494 +0100
5 if (show_message_dialog && !eject && val == TRUE && exit_status == 0)
6 xfce_dialog_show_info (NULL, NULL, _("The device \"%s\" should be removable safely now."), pdisk->device);
7 - if (show_message_dialog && disk_check_mounted(pdisk->device))
8 + if (show_message_dialog && (disk_check_mounted(pdisk->device) || disk_check_mounted(pdisk->mount_point)))
9 xfce_dialog_show_error (NULL, NULL, _("An error occurred. The device \"%s\" should not be removed!"), pdisk->device);
13 for (pfstab = getfsent(); pfstab!=NULL; pfstab = getfsent())
15 has_valid_mount_device =
16 - g_str_has_prefix(pfstab->fs_spec, "/dev/") || g_str_has_prefix(pfstab->fs_spec, "UUID=");
17 + g_str_has_prefix(pfstab->fs_spec, "/dev/") || g_str_has_prefix(pfstab->fs_spec, "UUID=") || g_str_has_prefix(pfstab->fs_spec, "LABEL=");
20 has_valid_mount_device = has_valid_mount_device |