![]() |
![]() |
![]() |
DeviceKit-disks Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Implemented Interfaces | Properties | Signals |
org.freedesktop.DeviceKit.Disksorg.freedesktop.DeviceKit.Disks — Disks interface |
EnumerateDevices (out 'ao' devices) EnumerateDeviceFiles (out 'as' device_files) FindDeviceByDeviceFile (in 's' device_file, out 'o' device) FindDeviceByMajorMinor (in 'x' device_major, in 'x' device_minor, out 'o' device) DriveInhibitAllPolling (in 'as' options, out 's' cookie) DriveUninhibitAllPolling (in 's' cookie) DriveSetAllSpindownTimeouts (in 'i' timeout_seconds, in 'as' options, out 's' cookie) DriveUnsetAllSpindownTimeouts (in 's' cookie) LinuxMdStart (in 'ao' components, in 'as' options, out 'o' device) LinuxMdCreate (in 'ao' components, in 's' level, in 't' stripe_size, in 's' name, in 'as' options, out 'o' device) Inhibit (out 's' cookie) Uninhibit (in 's' cookie)
DeviceAdded ('o' device) DeviceRemoved ('o' device) DeviceChanged ('o' device) DeviceJobChanged ('o' device, 'b' job_in_progress, 'b' job_is_cancellable, 's' job_id, 'i' job_num_tasks, 'i' job_cur_task, 's' job_cur_task_id, 'd' job_cur_task_percentage)
Objects implementing org.freedesktop.DeviceKit.Disks also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
'DaemonVersion' read 's' 'DaemonIsInhibited' read 'b' 'SupportsLuksDevices' read 'b' 'KnownFilesystems' read 'a(ssbbbubbbbbbbb)'
Enumerate all disk devices on the system.
|
An array of object paths for devices. |
Enumerate all device files (including symlinks) for disk devices on the system.
|
An array device file names. |
Finds a device by device path.
|
UNIX special device file |
|
Object path of device |
FindDeviceByMajorMinor (in 'x' device_major, in 'x' device_minor, out 'o' device)
Finds a device by major:minor.
|
Device major |
|
Device minor |
|
Object path of device |
Inhibits the daemon from polling devices for media changes.
|
Inhibit options. Currently no options are recognized. |
|
A cookie that can be used in the
DriveUninhibitAllPolling() method
to stop inhibiting polling of all devices.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the operation failed |
Uninhibits daemon from polling devices for media changes.
|
A cookie obtained from the
DriveInhibitAllPolling() method.
|
DriveSetAllSpindownTimeouts (in 'i' timeout_seconds, in 'as' options, out 's' cookie)
Configures spindown timeout for all drives capable of being spun down.
Caution should be exercised when using this method, see
the SPINNING DOWN DISKS section in the
devkit-disks(1)
man page before using it.
|
Number of seconds before drives should be spun down. |
|
Options related to setting spindown timeouts. Currently no options are recognized. |
|
A cookie that can be used in the
DriveUnsetAllSpindownTimeouts() method
to unset the spindown timeout for drives.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the operation failed |
|
if an invalid or malformed option was given |
Unsets spindown timeout for the drive.
|
A cookie obtained from the
DriveSetSpindownTimeout() method.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the operation failed |
Starts an Linux md RAID array. The array will be assembled and started in degraded mode if an insufficient number of components are given.
|
The object paths of the components of the array to start. |
|
Options for starting the array. Currently no options are supported. |
|
The object path of the assembled array device. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if one of the given components are busy |
|
if the operation failed |
|
if the job was cancelled |
LinuxMdCreate (in 'ao' components, in 's' level, in 't' stripe_size, in 's' name, in 'as' options, out 'o' device)
Creates a Linux md RAID array. The array will be created and assembled.
|
The object paths of the components to use for the array. |
|
RAID level. |
|
Stripe Size in bytes, or 0 to use the default stripe size. |
|
Name of the array. |
|
Options for creating the array. Currently no options are supported. |
|
The object path of the created array device. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if one of the given components are busy |
|
if the operation failed |
|
if the job was cancelled |
Inhibits clients from invoking methods on the daemon
of the daemon that require authorization (all methods
will return the org.freedesktop.DeviceKit.Disks.Error.Inhibited
error)
if the caller is not the super user.
This is typically used by OS installers and other
programs that expects full control of the system, specifically
to avoid automounting devices.
|
A cookie that can be used in the
Uninhibit() method.
to stop inhibiting the daemon.
|
Uninhibits other clients from using the daemon.
|
A cookie obtained from the
Inhibit() method.
|
Emitted when a device is added.
|
Object path of device that was added. |
Emitted when a device is removed.
|
Object path of device that was removed. |
Emitted when a device changed.
|
Object path of device that was changed. |
DeviceJobChanged ('o' device, 'b' job_in_progress, 'b' job_is_cancellable, 's' job_id, 'i' job_num_tasks, 'i' job_cur_task, 's' job_cur_task_id, 'd' job_cur_task_percentage)
Emitted when a job on a device changes.
|
The object path of the device. |
|
Whether a job is currently in progress. |
|
Whether the job is cancellable. |
|
The identifier of the job. |
|
Number of tasks in the job. |
|
Current task number (zero-based offset). |
|
Task identifier for current task. |
|
Percentage completed of current task (between 0 and 100, negative if unknown). |
The version of the running daemon.
TRUE only if the daemon is inhibited.
TRUE only if the daemon can create encrypted LUKS block devices, see the
LuksUnlock()
and
LuksLock()
methods for details.
An array of file systems known to the daemon and what features are supported. Each element in the array contains the following members:
ext3
or vfat
),
similar to the contents of the
Device:IdType
property.