PROP_DEVICE_SIZE,
PROP_DEVICE_BLOCK_SIZE,
PROP_DEVICE_IS_MOUNTED,
- PROP_DEVICE_IS_BUSY,
PROP_DEVICE_MOUNT_PATHS,
PROP_DEVICE_MOUNTED_BY_UID,
PROP_DEVICE_PRESENTATION_NAME,
case PROP_DEVICE_IS_MOUNTED:
g_value_set_boolean (value, device->priv->device_is_mounted);
break;
- case PROP_DEVICE_IS_BUSY:
- /* this property is special; it's value is computed on demand */
- g_value_set_boolean (value, devkit_disks_device_local_is_busy (device));
- break;
case PROP_DEVICE_MOUNT_PATHS:
g_value_set_boxed (value, device->priv->device_mount_paths);
break;
g_param_spec_boolean ("device-is-mounted", NULL, NULL, FALSE, G_PARAM_READABLE));
g_object_class_install_property (
object_class,
- PROP_DEVICE_IS_BUSY,
- g_param_spec_boolean ("device-is-busy", NULL, NULL, FALSE, G_PARAM_READABLE));
- g_object_class_install_property (
- object_class,
PROP_DEVICE_MOUNT_PATHS,
g_param_spec_boxed ("device-mount-paths", NULL, NULL,
dbus_g_type_get_collection ("GPtrArray", G_TYPE_STRING),
TRUE if device is a cleartext device backed by a LUKS encrypted device. See luks-cleartext- properties for details.
</doc:para></doc:description></doc:doc>
</property>
- <property name="device-is-busy" type="b" access="read">
- <doc:doc><doc:description><doc:para>
- TRUE if device is currently busy. Is set if the device is
- in use; this can hapen, for example, if the device is
- mounted, if another block device is claiming it (e.g. a
- RAID drive) or if a job initiated from DeviceKit-disks is
- pending.
- </doc:para></doc:description></doc:doc>
- </property>
<property name="device-is-linux-md-component" type="b" access="read">
<doc:doc><doc:description><doc:para>
TRUE if the device is a Linux md RAID component. See linux-md-component- properties for details.
gboolean device_is_luks;
gboolean device_is_luks_cleartext;
gboolean device_is_mounted;
- gboolean device_is_busy;
gboolean device_is_linux_md_component;
gboolean device_is_linux_md;
char **device_mount_paths;
props->device_is_linux_md = g_value_get_boolean (value);
else if (strcmp (key, "device-is-mounted") == 0)
props->device_is_mounted = g_value_get_boolean (value);
- else if (strcmp (key, "device-is-busy") == 0)
- props->device_is_busy = g_value_get_boolean (value);
else if (strcmp (key, "device-mount-paths") == 0)
props->device_mount_paths = g_strdupv (g_value_get_boxed (value));
else if (strcmp (key, "device-mounted-by-uid") == 0)
g_print (" detection inhibited: %d\n", props->device_is_media_change_detection_inhibited);
g_print (" is read only: %d\n", props->device_is_read_only);
g_print (" is mounted: %d\n", props->device_is_mounted);
- g_print (" is busy: %d\n", props->device_is_busy);
g_print (" mount paths: ");
for (n = 0; props->device_mount_paths != NULL && props->device_mount_paths[n] != NULL; n++) {
if (n != 0)