| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define UDISKS_ERROR (udisks_error_quark ())
Error domain for UDisks. Errors in this domain will be form the UDisksError enumeration. See GError for more information on error domains.
typedef enum {
UDISKS_ERROR_FAILED, /* org.freedesktop.UDisks2.Error.Failed */
UDISKS_ERROR_CANCELLED, /* org.freedesktop.UDisks2.Error.Cancelled */
UDISKS_ERROR_ALREADY_CANCELLED, /* org.freedesktop.UDisks2.Error.AlreadyCancelled */
UDISKS_ERROR_NOT_AUTHORIZED, /* org.freedesktop.UDisks2.Error.NotAuthorized */
UDISKS_ERROR_NOT_AUTHORIZED_CAN_OBTAIN, /* org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain */
UDISKS_ERROR_NOT_AUTHORIZED_DISMISSED, /* org.freedesktop.UDisks2.Error.NotAuthorizedDismissed */
UDISKS_ERROR_ALREADY_MOUNTED, /* org.freedesktop.UDisks2.Error.AlreadyMounted */
UDISKS_ERROR_NOT_MOUNTED, /* org.freedesktop.UDisks2.Error.NotMounted */
UDISKS_ERROR_OPTION_NOT_PERMITTED, /* org.freedesktop.UDisks2.Error.OptionNotPermitted */
UDISKS_ERROR_MOUNTED_BY_OTHER_USER, /* org.freedesktop.UDisks2.Error.MountedByOtherUser */
UDISKS_ERROR_ALREADY_UNMOUNTING, /* org.freedesktop.UDisks2.Error.AlreadyUnmounting */
UDISKS_ERROR_NOT_SUPPORTED, /* org.freedesktop.UDisks2.Error.NotSupported */
UDISKS_ERROR_TIMED_OUT, /* org.freedesktop.UDisks2.Error.Timedout */
UDISKS_ERROR_WOULD_WAKEUP, /* org.freedesktop.UDisks2.Error.WouldWakeup */
UDISKS_ERROR_DEVICE_BUSY, /* org.freedesktop.UDisks2.Error.DeviceBusy */
UDISKS_ERROR_ISCSI_DAEMON_TRANSPORT_FAILED, /* org.freedesktop.UDisks2.Error.ISCSI.CommunicationFailed */
UDISKS_ERROR_ISCSI_HOST_NOT_FOUND, /* org.freedesktop.UDisks2.Error.ISCSI.HostNotFound */
UDISKS_ERROR_ISCSI_IDMB, /* org.freedesktop.UDisks2.Error.ISCSI.IDMB */
UDISKS_ERROR_ISCSI_LOGIN_FAILED, /* org.freedesktop.UDisks2.Error.ISCSI.LoginFailed */
UDISKS_ERROR_ISCSI_LOGIN_AUTH_FAILED, /* org.freedesktop.UDisks2.Error.ISCSI.LoginAuthFailed */
UDISKS_ERROR_ISCSI_LOGIN_FATAL, /* org.freedesktop.UDisks2.Error.ISCSI.LoginFatal */
UDISKS_ERROR_ISCSI_LOGOUT_FAILED, /* org.freedesktop.UDisks2.Error.ISCSI.LogoutFailed */
UDISKS_ERROR_ISCSI_NO_FIRMWARE, /* org.freedesktop.UDisks2.Error.ISCSI.NoFirmware */
UDISKS_ERROR_ISCSI_NO_OBJECTS_FOUND, /* org.freedesktop.UDisks2.Error.ISCSI.NoObjectsFound */
UDISKS_ERROR_ISCSI_NOT_CONNECTED, /* org.freedesktop.UDisks2.Error.ISCSI.NotConnected */
UDISKS_ERROR_ISCSI_TRANSPORT_FAILED, /* org.freedesktop.UDisks2.Error.ISCSI.TransportFailed */
UDISKS_ERROR_ISCSI_UNKNOWN_DISCOVERY_TYPE /* org.freedesktop.UDisks2.Error.ISCSI.UnknownDiscoveryType */
} UDisksError;
Error codes for the UDISKS_ERROR error domain and the corresponding D-Bus error names.
| The operation failed. | |
| The operation was cancelled. | |
| The operation has already been cancelled. | |
| Not authorized to perform the requested operation. | |
Like UDISKS_ERROR_NOT_AUTHORIZED but authorization can be obtained through e.g. authentication.
|
|
Like UDISKS_ERROR_NOT_AUTHORIZED but an authentication was shown and the user dimissed it.
|
|
| The device is already mounted. | |
| The device is not mounted. | |
| Not permitted to use the requested option. | |
| The device is mounted by another user. | |
| The device is already unmounting. | |
| The operation is not supported due to missing driver/tool support. | |
| The operation timed out. | |
| The operation would wake up a disk that is in a deep-sleep state. | |
| Attempting to unmount a device that is busy. | |