![]() |
![]() |
![]() |
Disk Utility Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
GduDrivePrivate; GduDrive; gboolean gdu_drive_is_active (GduDrive *drive); gboolean gdu_drive_is_activatable (GduDrive *drive); gboolean gdu_drive_can_deactivate (GduDrive *drive); gboolean gdu_drive_can_activate (GduDrive *drive, gboolean *out_degraded); void gdu_drive_activate (GduDrive *drive, GduDriveActivateFunc callback, gpointer user_data); void gdu_drive_deactivate (GduDrive *drive, GduDriveDeactivateFunc callback, gpointer user_data);
The GduDrive class represents drives attached to the system. Normally, objects of this class corresponds 1:1 to physical drives (hard disks, optical drives, card readers etc.) attached to the system. However, it can also relate to software abstractions such as a Linux md Software RAID array and similar things.
See the documentation for GduPresentable for the big picture.
gboolean gdu_drive_can_activate (GduDrive *drive, gboolean *out_degraded);
Checks if drive
can be activated. If this function returns TRUE
,
out_degraded
will be set to whether the drive will be started in
degraded mode (e.g. starting a mirror RAID array with only one
component available).
|
A GduDrive. |
|
NULL or return location for whether the drive will be degraded if activated.
|
Returns : |
TRUE if drive can be activated (and out_degraded will be set), FALSE otherwise.
|
void gdu_drive_activate (GduDrive *drive, GduDriveActivateFunc callback, gpointer user_data);
|
|
|
|
|
void gdu_drive_deactivate (GduDrive *drive, GduDriveDeactivateFunc callback, gpointer user_data);
|
|
|
|
|