Bug 23541 – PartitionTableCreate method times out
authorEvan Dandrea <evand@ubuntu.com>
Fri, 18 Sep 2009 21:46:47 +0000 (17:46 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 18 Sep 2009 21:46:47 +0000 (17:46 -0400)
... when 'none' is specified as a parameter.

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/devkit-disks-device.c

index b6e0c7d..c9e91e9 100644 (file)
@@ -6605,8 +6605,8 @@ partition_table_create_device_changed_cb (DevkitDisksDaemon *daemon,
 
         device = devkit_disks_daemon_local_find_by_object_path (daemon, object_path);
         if (device == data->device) {
-
-                if (g_strcmp0 (device->priv->partition_table_scheme, data->scheme) == 0) {
+                if (g_strcmp0 (device->priv->partition_table_scheme, data->scheme) == 0 ||
+                    (device->priv->partition_table_scheme == NULL && g_strcmp0 (data->scheme, "none") == 0)) {
                         dbus_g_method_return (data->context);
 
                         g_signal_handler_disconnect (daemon, data->device_changed_signal_handler_id);