if (etype == 0)
{
- static const GEnumValue values[] =
- {
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_FAILED, "Failed"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_INHIBITED, "Inhibited"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_BUSY, "Busy"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_CANCELLED, "Cancelled"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_INVALID_OPTION, "InvalidOption"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_ALREADY_MOUNTED, "AlreadyMounted"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_MOUNTED, "NotMounted"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_CANCELLABLE, "NotCancellable"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_PARTITION, "NotPartition"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_PARTITION_TABLE, "NotPartitionTable"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_LABELED, "NotLabeled"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_FILESYSTEM, "NotFilesystem"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_LUKS, "NotLuks"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_LOCKED, "NotLocked"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_UNLOCKED, "NotUnlocked"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_LINUX_MD, "NotLinuxMd"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT, "NotLinuxMdComponent"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_DRIVE, "NotDrive"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_SUPPORTED, "NotSupported"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_FOUND, "NotFound"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_ATA_SMART_NOT_AVAILABLE, "AtaSmartNotAvailable"),
- ENUM_ENTRY (DEVKIT_DISKS_ERROR_ATA_SMART_WOULD_WAKEUP, "AtaSmartWouldWakeup"),
-
- { 0, 0, 0 }
- };
+ static const GEnumValue values[] = {
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_FAILED, "Failed"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_INHIBITED, "Inhibited"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_BUSY, "Busy"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_CANCELLED, "Cancelled"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_INVALID_OPTION, "InvalidOption"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_NOT_SUPPORTED, "NotSupported"),
+ ENUM_ENTRY (DEVKIT_DISKS_ERROR_ATA_SMART_WOULD_WAKEUP, "AtaSmartWouldWakeup"),
+ { 0, 0, 0 }
+ };
g_assert (DEVKIT_DISKS_NUM_ERRORS == G_N_ELEMENTS (values) - 1);
etype = g_enum_register_static ("DevkitDisksError", values);
}
dbus_g_method_return (context, object_path);
} else {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_FOUND,
+ DEVKIT_DISKS_ERROR_FAILED,
"No such device");
}
typedef enum
{
DEVKIT_DISKS_ERROR_FAILED,
- DEVKIT_DISKS_ERROR_INHIBITED,
DEVKIT_DISKS_ERROR_BUSY,
DEVKIT_DISKS_ERROR_CANCELLED,
+ DEVKIT_DISKS_ERROR_INHIBITED,
DEVKIT_DISKS_ERROR_INVALID_OPTION,
- DEVKIT_DISKS_ERROR_ALREADY_MOUNTED,
- DEVKIT_DISKS_ERROR_NOT_MOUNTED,
- DEVKIT_DISKS_ERROR_NOT_CANCELLABLE,
- DEVKIT_DISKS_ERROR_NOT_PARTITION,
- DEVKIT_DISKS_ERROR_NOT_PARTITION_TABLE,
- DEVKIT_DISKS_ERROR_NOT_LABELED,
- DEVKIT_DISKS_ERROR_NOT_FILESYSTEM,
- DEVKIT_DISKS_ERROR_NOT_LUKS,
- DEVKIT_DISKS_ERROR_NOT_LOCKED,
- DEVKIT_DISKS_ERROR_NOT_UNLOCKED,
- DEVKIT_DISKS_ERROR_NOT_LINUX_MD,
- DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
- DEVKIT_DISKS_ERROR_NOT_DRIVE,
DEVKIT_DISKS_ERROR_NOT_SUPPORTED,
- DEVKIT_DISKS_ERROR_NOT_FOUND,
- DEVKIT_DISKS_ERROR_ATA_SMART_NOT_AVAILABLE,
DEVKIT_DISKS_ERROR_ATA_SMART_WOULD_WAKEUP,
DEVKIT_DISKS_NUM_ERRORS
} DevkitDisksError;
if (device->priv->id_usage == NULL ||
strcmp (device->priv->id_usage, "filesystem") != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_FILESYSTEM,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Not a mountable file system");
goto out;
}
if (device->priv->id_type != NULL && strlen (device->priv->id_type)) {
fstype = g_strdup (device->priv->id_type);
} else {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_FILESYSTEM, "No file system type");
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED, "No file system type");
goto out;
}
} else {
g_print ("**** USING MOUNT OPTIONS '%s' FOR DEVICE %s\n", mount_options, device->priv->device_file);
if (device->priv->device_is_mounted) {
- throw_error (context, DEVKIT_DISKS_ERROR_ALREADY_MOUNTED,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is already mounted");
goto out;
}
if (!device->priv->device_is_mounted ||
device->priv->device_mount_paths->len == 0) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_MOUNTED,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device is not mounted");
goto out;
}
if (!device->priv->device_is_mounted ||
device->priv->device_mount_paths->len == 0) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_MOUNTED,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device is not mounted");
goto out;
}
goto out;
if (!device->priv->device_is_drive) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_DRIVE,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a drive");
goto out;
}
if (!device->priv->device_is_partition) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_PARTITION,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device is not a partition");
goto out;
}
if (!device->priv->job_is_cancellable) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_CANCELLABLE,
+ DEVKIT_DISKS_ERROR_FAILED,
"Job cannot be cancelled");
goto out;
}
if (!device->priv->device_is_partition_table) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_PARTITION_TABLE,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device is not partitioned");
goto out;
}
if (!device->priv->device_is_partition) {
throw_error (context,
- DEVKIT_DISKS_ERROR_NOT_PARTITION,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device is not a partition");
goto out;
}
if (device->priv->id_usage == NULL ||
strcmp (device->priv->id_usage, "crypto") != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LUKS,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Not a LUKS device");
goto out;
}
if (find_cleartext_device (device) != NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LOCKED,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Cleartext device is already unlocked");
goto out;
}
if (device->priv->id_usage == NULL ||
strcmp (device->priv->id_usage, "crypto") != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LUKS,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Not a LUKS crypto device");
goto out;
}
cleartext_device = find_cleartext_device (device);
if (cleartext_device == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_UNLOCKED,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Cleartext device is not unlocked");
goto out;
}
if (device->priv->id_usage == NULL ||
strcmp (device->priv->id_usage, "crypto") != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LUKS,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Not a LUKS crypto device");
goto out;
}
if (device->priv->id_usage == NULL ||
strcmp (device->priv->id_usage, "filesystem") != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LABELED,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Not a mountable file system");
goto out;
}
if (!device->priv->drive_ata_smart_is_available) {
throw_error (context,
- DEVKIT_DISKS_ERROR_ATA_SMART_NOT_AVAILABLE,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device does not support ATA SMART");
goto out;
}
if (!device->priv->drive_ata_smart_is_available) {
throw_error (context,
- DEVKIT_DISKS_ERROR_ATA_SMART_NOT_AVAILABLE,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device does not support ATA SMART");
goto out;
}
if (!device->priv->drive_ata_smart_is_available) {
throw_error (context,
- DEVKIT_DISKS_ERROR_ATA_SMART_NOT_AVAILABLE,
+ DEVKIT_DISKS_ERROR_FAILED,
"Device does not support ATA SMART");
goto out;
}
goto out;
if (!device->priv->device_is_linux_md) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a Linux md drive");
goto out;
}
goto out;
if (!device->priv->device_is_linux_md) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a Linux md drive");
goto out;
}
slave = devkit_disks_daemon_local_find_by_object_path (device->priv->daemon, component);
if (slave == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_FOUND,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Component doesn't exist");
goto out;
}
goto out;
if (!device->priv->device_is_linux_md) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a Linux md drive");
goto out;
}
slave = devkit_disks_daemon_local_find_by_object_path (device->priv->daemon, component);
if (slave == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_FOUND,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Component doesn't exist");
goto out;
}
break;
}
if (n == (int) device->priv->linux_md_slaves->len) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_FOUND,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Component isn't part of the running array");
goto out;
}
slave = devkit_disks_daemon_local_find_by_object_path (daemon, component_objpath);
if (slave == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Component %s doesn't exist", component_objpath);
goto out;
}
if (!slave->priv->device_is_linux_md_component) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"%s is not a linux-md component", component_objpath);
goto out;
}
if (n == 0) {
uuid = g_strdup (slave->priv->linux_md_component_uuid);
if (uuid == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"no uuid for one of the components");
}
} else {
this_uuid = slave->priv->linux_md_component_uuid;
if (this_uuid == NULL || strcmp (uuid, this_uuid) != 0) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"uuid mismatch between given components");
goto out;
}
slave = devkit_disks_daemon_local_find_by_object_path (daemon, component_objpath);
if (slave == NULL) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_LINUX_MD_COMPONENT,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Component %s doesn't exist", component_objpath);
goto out;
}
goto out;
if (!device->priv->device_is_drive) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_DRIVE,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a drive");
goto out;
}
goto out;
if (!device->priv->device_is_drive) {
- throw_error (context, DEVKIT_DISKS_ERROR_NOT_DRIVE,
+ throw_error (context, DEVKIT_DISKS_ERROR_FAILED,
"Device is not a drive");
goto out;
}
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" [
<!ENTITY ERROR_FAILED "org.freedesktop.DeviceKit.Disks.Error.Failed">
- <!ENTITY ERROR_INHIBITED "org.freedesktop.DeviceKit.Disks.Error.Inhibited">
<!ENTITY ERROR_BUSY "org.freedesktop.DeviceKit.Disks.Error.Busy">
<!ENTITY ERROR_CANCELLED "org.freedesktop.DeviceKit.Disks.Error.Cancelled">
+ <!ENTITY ERROR_INHIBITED "org.freedesktop.DeviceKit.Disks.Error.Inhibited">
<!ENTITY ERROR_INVALID_OPTION "org.freedesktop.DeviceKit.Disks.Error.InvalidOption">
- <!ENTITY ERROR_ALREADY_MOUNTED "org.freedesktop.DeviceKit.Disks.Error.AlreadyMounted">
- <!ENTITY ERROR_NOT_MOUNTED "org.freedesktop.DeviceKit.Disks.Error.NotMounted">
- <!ENTITY ERROR_NOT_CANCELLABLE "org.freedesktop.DeviceKit.Disks.Error.NotCancellable">
- <!ENTITY ERROR_NOT_PARTITION "org.freedesktop.DeviceKit.Disks.Error.NotPartition">
- <!ENTITY ERROR_NOT_PARTITION_TABLE "org.freedesktop.DeviceKit.Disks.Error.NotPartitionTable">
- <!ENTITY ERROR_NOT_FILESYSTEM "org.freedesktop.DeviceKit.Disks.Error.NotFilesystem">
- <!ENTITY ERROR_NOT_LUKS "org.freedesktop.DeviceKit.Disks.Error.NotLuks">
- <!ENTITY ERROR_NOT_LOCKED "org.freedesktop.DeviceKit.Disks.Error.NotLocked">
- <!ENTITY ERROR_NOT_UNLOCKED "org.freedesktop.DeviceKit.Disks.Error.NotUnlocked">
- <!ENTITY ERROR_NOT_LINUX_MD "org.freedesktop.DeviceKit.Disks.Error.NotLinuxMd">
- <!ENTITY ERROR_NOT_LINUX_MD_COMPONENT "org.freedesktop.DeviceKit.Disks.Error.NotLinuxMdComponent">
- <!ENTITY ERROR_NOT_DRIVE "org.freedesktop.DeviceKit.Disks.Error.NotDrive">
<!ENTITY ERROR_NOT_SUPPORTED "org.freedesktop.DeviceKit.Disks.Error.NotSupported">
- <!ENTITY ERROR_NOT_FOUND "org.freedesktop.DeviceKit.Disks.Error.NotFound">
- <!ENTITY ERROR_ATA_SMART_NOT_AVAILABLE "org.freedesktop.DeviceKit.Disks.Error.AtaSmartNotAvailable">
- <!ENTITY ERROR_ATA_SMART_WOULD_WAKEUP "org.freedesktop.DeviceKit.Disks.Error.AtaSmartWouldWakeup">
+ <!ENTITY ERROR_ATA_SMART_WOULD_WAKEUP "org.freedesktop.DeviceKit.Disks.Error.NotFound">
<!ENTITY ERROR_NOT_AUTHORIZED "org.freedesktop.PolicyKit.Error.NotAuthorized">
]>
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_FAILED;">if no job is pending</doc:error>
- <doc:error name="&ERROR_NOT_CANCELLABLE;">if job is not cancellable</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device or a partition on it are busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
</doc:errors>
</doc:doc>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_PARTITION;">if the device is not a partition</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_PARTITION_TABLE;">if the device is not a partitition table</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the enclosing partition table device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_PARTITION;">if the device is not a partition</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
</doc:errors>
</doc:doc>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy and changing the label requires an unmounted file system</doc:error>
- <doc:error name="&ERROR_FAILED;">if the file system doesn't support labels, the label is too long</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
</doc:errors>
</doc:doc>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_FILESYSTEM;">if the device is not a mountable file system</doc:error>
<doc:error name="&ERROR_INVALID_OPTION;">if an invalid or malformed mount option was given</doc:error>
- <doc:error name="&ERROR_ALREADY_MOUNTED;">if the device is already mounted</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
<doc:error name="&ERROR_INVALID_OPTION;">if an invalid or malformed unmount option was given</doc:error>
- <doc:error name="&ERROR_NOT_MOUNTED;">if the device is not mounted</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is mounted and the file system doesn't support online file system checking. See TODO for how to determine if a file system supports online fsck</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
</doc:errors>
</doc:doc>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is mounted and the file system doesn't support online file system checking. See TODO for how to determine if a file system supports online fsck</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
- <doc:error name="&ERROR_NOT_FILESYSTEM;">if the device is not a mountable file system</doc:error>
- <doc:error name="&ERROR_NOT_MOUNTED;">if the file system is not mounted</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LUKS;">if the device is not LUKS encrypted</doc:error>
- <doc:error name="&ERROR_NOT_LOCKED;">if the device is already unlocked</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LUKS;">if the device is not LUKS encrypted</doc:error>
- <doc:error name="&ERROR_NOT_UNLOCKED;">if the device is not unlocked</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LUKS;">if the device is not LUKS encrypted</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">component to add is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LINUX_MD;">device to add component to is not a Linux md RAID array</doc:error>
- <doc:error name="&ERROR_NOT_FOUND;">given component doesn't exist</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">component to add is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LINUX_MD;">device to remove component from is not a Linux md RAID array</doc:error>
- <doc:error name="&ERROR_NOT_FOUND;">given component is not part of the array</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">component to add is busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LINUX_MD;">device is not a Linux md RAID array</doc:error>
</doc:errors>
</doc:doc>
</method>
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
- <doc:error name="&ERROR_NOT_DRIVE;">device is not a drive</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
</doc:list>
</doc:permission>
<doc:errors>
- <doc:error name="&ERROR_FAILED;">if an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if the device or a dependent device (e.g. partition or cleartext luks device) is busy (e.g. mounted)</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_DRIVE;">device is not a drive</doc:error>
- <doc:error name="&ERROR_INVALID_OPTION;">if an invalid or malformed unmount option was given</doc:error>
+ <doc:error name="&ERROR_INVALID_OPTION;">if an invalid or malformed option was given</doc:error>
</doc:errors>
</doc:doc>
</method>
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_ATA_SMART_NOT_AVAILABLE;">if ATA SMART isn't available on the disk</doc:error>
- <doc:error name="&ERROR_ATA_SMART_WOULD_WAKEUP;">If the disk is asleep and the nowakeup option was passed</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_ATA_SMART_WOULD_WAKEUP;">If the disk is sleeping and the <doc:tt>nowakeup</doc:tt> option was passed</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_ATA_SMART_NOT_AVAILABLE;">if ATA SMART isn't available on the disk</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
</doc:errors>
</doc:doc>
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_ATA_SMART_NOT_AVAILABLE;">device is not ATA SMART capable</doc:error>
</doc:errors>
</doc:doc>
</method>
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" [
<!ENTITY ERROR_FAILED "org.freedesktop.DeviceKit.Disks.Error.Failed">
- <!ENTITY ERROR_INHIBITED "org.freedesktop.DeviceKit.Disks.Error.Inhibited">
<!ENTITY ERROR_BUSY "org.freedesktop.DeviceKit.Disks.Error.Busy">
<!ENTITY ERROR_CANCELLED "org.freedesktop.DeviceKit.Disks.Error.Cancelled">
+ <!ENTITY ERROR_INHIBITED "org.freedesktop.DeviceKit.Disks.Error.Inhibited">
<!ENTITY ERROR_INVALID_OPTION "org.freedesktop.DeviceKit.Disks.Error.InvalidOption">
- <!ENTITY ERROR_ALREADY_MOUNTED "org.freedesktop.DeviceKit.Disks.Error.AlreadyMounted">
- <!ENTITY ERROR_NOT_MOUNTED "org.freedesktop.DeviceKit.Disks.Error.NotMounted">
- <!ENTITY ERROR_NOT_CANCELLABLE "org.freedesktop.DeviceKit.Disks.Error.NotCancellable">
- <!ENTITY ERROR_NOT_PARTITION "org.freedesktop.DeviceKit.Disks.Error.NotPartition">
- <!ENTITY ERROR_NOT_PARTITION_TABLE "org.freedesktop.DeviceKit.Disks.Error.NotPartitionTable">
- <!ENTITY ERROR_NOT_FILESYSTEM "org.freedesktop.DeviceKit.Disks.Error.NotFilesystem">
- <!ENTITY ERROR_NOT_LUKS "org.freedesktop.DeviceKit.Disks.Error.NotLuks">
- <!ENTITY ERROR_NOT_LOCKED "org.freedesktop.DeviceKit.Disks.Error.NotLocked">
- <!ENTITY ERROR_NOT_UNLOCKED "org.freedesktop.DeviceKit.Disks.Error.NotUnlocked">
- <!ENTITY ERROR_NOT_LINUX_MD "org.freedesktop.DeviceKit.Disks.Error.NotLinuxMd">
- <!ENTITY ERROR_NOT_LINUX_MD_COMPONENT "org.freedesktop.DeviceKit.Disks.Error.NotLinuxMdComponent">
- <!ENTITY ERROR_NOT_DRIVE "org.freedesktop.DeviceKit.Disks.Error.NotDrive">
- <!ENTITY ERROR_NOT_SMART_CAPABLE "org.freedesktop.DeviceKit.Disks.Error.NotSmartCapable">
<!ENTITY ERROR_NOT_SUPPORTED "org.freedesktop.DeviceKit.Disks.Error.NotSupported">
- <!ENTITY ERROR_NOT_FOUND "org.freedesktop.DeviceKit.Disks.Error.NotFound">
+ <!ENTITY ERROR_ATA_SMART_WOULD_WAKEUP "org.freedesktop.DeviceKit.Disks.Error.NotFound">
<!ENTITY ERROR_NOT_AUTHORIZED "org.freedesktop.PolicyKit.Error.NotAuthorized">
]>
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
</doc:permission>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
</doc:errors>
</doc:doc>
</method>
<doc:errors>
<doc:error name="&ERROR_NOT_AUTHORIZED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
<doc:error name="&ERROR_BUSY;">if one of the given components are busy</doc:error>
- <doc:error name="&ERROR_FAILED;">if incoming parameters are invalid or an unknown error occured</doc:error>
+ <doc:error name="&ERROR_FAILED;">if the operation failed</doc:error>
<doc:error name="&ERROR_CANCELLED;">if the job was cancelled</doc:error>
- <doc:error name="&ERROR_NOT_LINUX_MD_COMPONENT;">one of the given components doesn't exist or is not a Linux md component</doc:error>
</doc:errors>
</doc:doc>
</method>