Top |
UDisksLinuxDriveAtaUDisksLinuxDriveAta — Linux implementation of UDisksDriveAta |
UDisksDriveAta * | udisks_linux_drive_ata_new () |
gboolean | udisks_linux_drive_ata_update () |
gboolean | udisks_linux_drive_ata_refresh_smart_sync () |
gboolean | udisks_linux_drive_ata_smart_selftest_sync () |
void | udisks_linux_drive_ata_apply_configuration () |
gboolean | udisks_linux_drive_ata_secure_erase_sync () |
GObject ╰── GDBusInterfaceSkeleton ╰── UDisksDriveAtaSkeleton ╰── UDisksLinuxDriveAta
UDisksDriveAta *
udisks_linux_drive_ata_new (void
);
Creates a new UDisksLinuxDriveAta instance.
gboolean udisks_linux_drive_ata_update (UDisksLinuxDriveAta *drive
,UDisksLinuxDriveObject *object
);
Updates the interface.
gboolean udisks_linux_drive_ata_refresh_smart_sync (UDisksLinuxDriveAta *drive
,gboolean nowakeup
,const gchar *simulate_path
,GCancellable *cancellable
,GError **error
);
Synchronously refreshes ATA S.M.A.R.T. data on drive
using one of
the physical drives associated with it. The calling thread is
blocked until the data has been obtained.
If nowake
is TRUE
and the disk is in a sleep state this fails
with UDISKS_ERROR_WOULD_WAKEUP
.
This may only be called if drive
has been associated with a
UDisksLinuxDriveObject instance.
This method may be called from any thread.
drive |
The UDisksLinuxDriveAta to refresh. |
|
nowakeup |
If |
|
simulate_path |
If not |
|
cancellable |
A GCancellable or |
|
error |
Return location for error. |
gboolean udisks_linux_drive_ata_smart_selftest_sync (UDisksLinuxDriveAta *drive
,const gchar *type
,GCancellable *cancellable
,GError **error
);
Starts (or aborts) a SMART self-test on drive
. Valid values for
type
includes 'short', 'extended', 'conveyance' and 'abort'.
The calling thread is blocked while sending the command to the drive but will return immediately after the drive acknowledges the command.
void udisks_linux_drive_ata_apply_configuration (UDisksLinuxDriveAta *drive
,UDisksLinuxDevice *device
,GVariant *configuration
);
Spawns a thread to apply configuration
to drive
, if any. Does not
wait for the thread to terminate.
gboolean udisks_linux_drive_ata_secure_erase_sync (UDisksLinuxDriveAta *drive
,uid_t caller_uid
,gboolean enhanced
,GError **error
);
Performs an ATA Secure Erase opeartion. Blocks the calling thread until the operation completes.
This operation may take a very long time (hours) to complete.
typedef struct _UDisksLinuxDriveAta UDisksLinuxDriveAta;
The UDisksLinuxDriveAta structure contains only private data and should only be accessed using the provided API.