StoragedError

StoragedError — Possible errors that can be returned

Synopsis

#define             STORAGED_ERROR
enum                StoragedError;

Description

Error codes and D-Bus errors.

Details

STORAGED_ERROR

#define STORAGED_ERROR (storaged_error_quark ())

Error domain for Storaged. Errors in this domain will be form the StoragedError enumeration. See GError for more information on error domains.


enum StoragedError

typedef enum {
  STORAGED_ERROR_FAILED,                        /* org.storaged.Storaged.Error.Failed */
  STORAGED_ERROR_CANCELLED,                     /* org.storaged.Storaged.Error.Cancelled */
  STORAGED_ERROR_ALREADY_CANCELLED,             /* org.storaged.Storaged.Error.AlreadyCancelled */
  STORAGED_ERROR_NOT_AUTHORIZED,                /* org.storaged.Storaged.Error.NotAuthorized */
  STORAGED_ERROR_NOT_AUTHORIZED_CAN_OBTAIN,     /* org.storaged.Storaged.Error.NotAuthorizedCanObtain */
  STORAGED_ERROR_NOT_AUTHORIZED_DISMISSED,      /* org.storaged.Storaged.Error.NotAuthorizedDismissed */
  STORAGED_ERROR_ALREADY_MOUNTED,               /* org.storaged.Storaged.Error.AlreadyMounted */
  STORAGED_ERROR_NOT_MOUNTED,                   /* org.storaged.Storaged.Error.NotMounted */
  STORAGED_ERROR_OPTION_NOT_PERMITTED,          /* org.storaged.Storaged.Error.OptionNotPermitted */
  STORAGED_ERROR_MOUNTED_BY_OTHER_USER,         /* org.storaged.Storaged.Error.MountedByOtherUser */
  STORAGED_ERROR_ALREADY_UNMOUNTING,            /* org.storaged.Storaged.Error.AlreadyUnmounting */
  STORAGED_ERROR_NOT_SUPPORTED,                 /* org.storaged.Storaged.Error.NotSupported */
  STORAGED_ERROR_TIMED_OUT,                     /* org.storaged.Storaged.Error.Timedout */
  STORAGED_ERROR_WOULD_WAKEUP,                  /* org.storaged.Storaged.Error.WouldWakeup */
  STORAGED_ERROR_DEVICE_BUSY,                   /* org.storaged.Storaged.Error.DeviceBusy */
  STORAGED_ERROR_ISCSI_DAEMON_TRANSPORT_FAILED, /* org.storaged.Storaged.Error.ISCSI.CommunicationFailed */
  STORAGED_ERROR_ISCSI_HOST_NOT_FOUND,          /* org.storaged.Storaged.Error.ISCSI.HostNotFound */
  STORAGED_ERROR_ISCSI_IDMB,                    /* org.storaged.Storaged.Error.ISCSI.IDMB */
  STORAGED_ERROR_ISCSI_LOGIN_FAILED,            /* org.storaged.Storaged.Error.ISCSI.LoginFailed */
  STORAGED_ERROR_ISCSI_LOGIN_AUTH_FAILED,       /* org.storaged.Storaged.Error.ISCSI.LoginAuthFailed */
  STORAGED_ERROR_ISCSI_LOGIN_FATAL,             /* org.storaged.Storaged.Error.ISCSI.LoginFatal */
  STORAGED_ERROR_ISCSI_LOGOUT_FAILED,           /* org.storaged.Storaged.Error.ISCSI.LogoutFailed */
  STORAGED_ERROR_ISCSI_NO_FIRMWARE,             /* org.storaged.Storaged.Error.ISCSI.NoFirmware */
  STORAGED_ERROR_ISCSI_NO_OBJECTS_FOUND,        /* org.storaged.Storaged.Error.ISCSI.NoObjectsFound */
  STORAGED_ERROR_ISCSI_NOT_CONNECTED,           /* org.storaged.Storaged.Error.ISCSI.NotConnected */
  STORAGED_ERROR_ISCSI_TRANSPORT_FAILED,        /* org.storaged.Storaged.Error.ISCSI.TransportFailed */
  STORAGED_ERROR_ISCSI_UNKNOWN_DISCOVERY_TYPE   /* org.storaged.Storaged.Error.ISCSI.UnknownDiscoveryType */
} StoragedError;

Error codes for the STORAGED_ERROR error domain and the corresponding D-Bus error names.

STORAGED_ERROR_FAILED

The operation failed.

STORAGED_ERROR_CANCELLED

The operation was cancelled.

STORAGED_ERROR_ALREADY_CANCELLED

The operation has already been cancelled.

STORAGED_ERROR_NOT_AUTHORIZED

Not authorized to perform the requested operation.

STORAGED_ERROR_NOT_AUTHORIZED_CAN_OBTAIN

Like STORAGED_ERROR_NOT_AUTHORIZED but authorization can be obtained through e.g. authentication.

STORAGED_ERROR_NOT_AUTHORIZED_DISMISSED

Like STORAGED_ERROR_NOT_AUTHORIZED but an authentication was shown and the user dimissed it.

STORAGED_ERROR_ALREADY_MOUNTED

The device is already mounted.

STORAGED_ERROR_NOT_MOUNTED

The device is not mounted.

STORAGED_ERROR_OPTION_NOT_PERMITTED

Not permitted to use the requested option.

STORAGED_ERROR_MOUNTED_BY_OTHER_USER

The device is mounted by another user.

STORAGED_ERROR_ALREADY_UNMOUNTING

The device is already unmounting.

STORAGED_ERROR_NOT_SUPPORTED

The operation is not supported due to missing driver/tool support.

STORAGED_ERROR_TIMED_OUT

The operation timed out.

STORAGED_ERROR_WOULD_WAKEUP

The operation would wake up a disk that is in a deep-sleep state.

STORAGED_ERROR_DEVICE_BUSY

Attempting to unmount a device that is busy.

STORAGED_ERROR_ISCSI_DAEMON_TRANSPORT_FAILED

STORAGED_ERROR_ISCSI_HOST_NOT_FOUND

STORAGED_ERROR_ISCSI_IDMB

STORAGED_ERROR_ISCSI_LOGIN_FAILED

STORAGED_ERROR_ISCSI_LOGIN_AUTH_FAILED

STORAGED_ERROR_ISCSI_LOGIN_FATAL

STORAGED_ERROR_ISCSI_LOGOUT_FAILED

STORAGED_ERROR_ISCSI_NO_FIRMWARE

STORAGED_ERROR_ISCSI_NO_OBJECTS_FOUND

STORAGED_ERROR_ISCSI_NOT_CONNECTED

STORAGED_ERROR_ISCSI_TRANSPORT_FAILED

STORAGED_ERROR_ISCSI_UNKNOWN_DISCOVERY_TYPE