![]() |
![]() |
![]() |
DeviceKit-disks Reference Manual | ![]() |
---|---|---|---|---|
org.freedesktop.DeviceKit.Disks.Deviceorg.freedesktop.DeviceKit.Disks.Device — Device interface |
JobCancel () PartitionTableCreate (in 's' scheme, in 'as' options) PartitionDelete (in 'as' options) PartitionCreate (in 't' offset, in 't' size, in 's' type, in 's' label, in 'as' flags, in 'as' options, in 's' fstype, in 'as' fsoptions, out 'o' created_device) PartitionModify (in 's' type, in 's' label, in 'as' flags) FilesystemCreate (in 's' fstype, in 'as' options) FilesystemSetLabel (in 's' new_label) FilesystemMount (in 's' filesystem_type, in 'as' options, out 's' mount_path) FilesystemUnmount (in 'as' options) FilesystemCheck (in 'as' options, out 'b' is_clean) FilesystemListOpenFiles (out 'a(uus)' processes) LuksUnlock (in 's' passphrase, in 'as' options, out 'o' cleartext_device) LuksLock (in 'as' options) LuksChangePassphrase (in 's' current_passphrase, in 's' new_passphrase) LinuxMdAddComponent (in 'o' component, in 'as' options) LinuxMdRemoveComponent (in 'o' component, in 'as' options) LinuxMdStop (in 'as' options) DriveEject (in 'as' options) DriveSmartRefreshData (in 'as' options) DriveSmartGetHistoricalData (in 't' since, in 't' until, out 'a(tdtsba(isiiiis))' data) DriveSmartInitiateSelftest (in 's' test, in 'b' captive)
Changed () JobChanged ('b' job-in-progress, 'b' job-is-cancellable, 's' job-id, 'u' job-initiated-by-uid, 'i' job-num-tasks, 'i' job-cur-task, 's' job-cur-task-id, 'd' job-cur-task-percentage)
Objects implementing org.freedesktop.DeviceKit.Disks.Device also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
'native-path' read 's' 'device-file' read 's' 'device-file-by-id' read 'as' 'device-file-by-path' read 'as' 'device-is-system-internal' read 'b' 'device-is-partition' read 'b' 'device-is-partition-table' read 'b' 'device-is-removable' read 'b' 'device-is-media-available' read 'b' 'device-is-read-only' read 'b' 'device-is-drive' read 'b' 'device-is-optical-disc' read 'b' 'device-is-mounted' read 'b' 'device-mount-path' read 's' 'device-mounted-by-uid' read 'u' 'device-is-luks-cleartext' read 'b' 'device-is-busy' read 'b' 'device-is-linux-md-component' read 'b' 'device-is-linux-md' read 'b' 'device-size' read 't' 'device-block-size' read 't' 'job-in-progress' read 'b' 'job-id' read 's' 'job-initiated-by-uid' read 'u' 'job-is-cancellable' read 'b' 'job-num-tasks' read 'i' 'job-cur-task' read 'i' 'job-cur-task-id' read 's' 'job-cur-task-percentage' read 'd' 'id-usage' read 's' 'id-type' read 's' 'id-version' read 's' 'id-uuid' read 's' 'id-label' read 's' 'luks-cleartext-slave' read 'o' 'luks-cleartext-unlocked-by-uid' read 'u' 'partition-slave' read 'o' 'partition-scheme' read 's' 'partition-type' read 's' 'partition-label' read 's' 'partition-uuid' read 's' 'partition-flags' read 'as' 'partition-number' read 'i' 'partition-offset' read 't' 'partition-size' read 't' 'partition-table-scheme' read 's' 'partition-table-count' read 'i' 'partition-table-max-number' read 'i' 'partition-table-offsets' read 'at' 'partition-table-sizes' read 'at' 'drive-vendor' read 's' 'drive-model' read 's' 'drive-revision' read 's' 'drive-serial' read 's' 'drive-connection-interface' read 's' 'drive-connection-speed' read 't' 'drive-media-compatibility' read 'as' 'drive-media' read 's' 'drive-is-media-ejectable' read 'b' 'drive-requires-eject' read 'b' 'optical-disc-is-recordable' read 'b' 'optical-disc-is-rewritable' read 'b' 'optical-disc-is-blank' read 'b' 'optical-disc-is-appendable' read 'b' 'optical-disc-is-closed' read 'b' 'optical-disc-has-audio' read 'b' 'optical-disc-num-tracks' read 'u' 'optical-disc-num-sessions' read 'u' 'drive-smart-is-capable' read 'b' 'drive-smart-is-enabled' read 'b' 'drive-smart-time-collected' read 't' 'drive-smart-is-failing' read 'b' 'drive-smart-temperature' read 'd' 'drive-smart-time-powered-on' read 't' 'drive-smart-last-self-test-result' read 's' 'drive-smart-attributes' read 'a(isiiiis)' 'linux-md-component-level' read 's' 'linux-md-component-num-raid-devices' read 'i' 'linux-md-component-uuid' read 's' 'linux-md-component-name' read 's' 'linux-md-component-version' read 's' 'linux-md-component-update-time' read 't' 'linux-md-component-events' read 't' 'linux-md-level' read 's' 'linux-md-num-raid-devices' read 'i' 'linux-md-version' read 's' 'linux-md-slaves' read 'ao' 'linux-md-slaves-state' read 'as' 'linux-md-is-degraded' read 'b' 'linux-md-sync-action' read 's' 'linux-md-sync-percentage' read 'd' 'linux-md-sync-speed' read 't'
This interface provides information about a block device on
a UNIX-like system. In addition to just providing
information, methods can be invoked to perform operations on
the block device. Objects implementing this interface have
object paths prefixed with /devices/
followed by a sanitized representation of the base name of
their native path. As the D-Bus specification greatly limits
what characters can be used in object paths, this doesn't
necessarily map one to one with the native basename; for
example the native
path /sys/devices/virtual/block/dm-0
will
be represented as /devices/dm_0
.
Most methods on this interface take an array of strings
for options that can affect what the method does. Some of
these options are literal strings (such
as remount
) while some are encoded in the
form of a key/value pair (such
as label=
). While the documentation for
each method will specify exactly what set of options are
recognized, many methods accepts
the erase=
option that can be used to
erase the contents of the device prior to starting the
operation. Instead of repeating what values can be used in
the the erase=
option in every method
that supports it, we will enumerate them only once:
The data written out is not entirely random, see the Gutmann Method for more details.
A general note about properties: the set of values
returned can be expected to grow in the future as both
hardware and operating system capabilities evolve. Care
has been taken to namespace values so applications can
properly fall back (see e.g.
drive-media-compatibility
)
and export both general and specific properties (such as
id-usage
vs.
id-type
).
In general an empty string in a property means not
set. Since the empty string is not a valid object path we
use the "/" to mean "not set" for object paths.
Cancels a job in progress.
|
if the caller lacks the appropriate PolicyKit authorization |
|
if no job is pending |
|
if job is not cancellable |
non-system-internal
device initiated by another usersystem-internal
device initiated by another userCreates a new partition table. The following partition table schemes are supported:
|
The scheme of the partition table to create. |
|
Supports the erase= option for erasing the contents of the device. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device or a partition on it are busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
non-system-internal
devicesystem-internal
deviceDeletes a partition, removing it from the enclosing partition table.
|
Supports the erase= option for erasing the contents of the device. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not a partition |
non-system-internal
devicesystem-internal
devicePartitionCreate (in 't' offset, in 't' size, in 's' type, in 's' label, in 'as' flags, in 'as' options, in 's' fstype, in 'as' fsoptions, out 'o' created_device)
Create a new partition and, optionally, create a file system on it. The partition won't necessarily be created at the exact location requested due to disk geometry constraints.
|
Where on the device to create the partition. |
|
Size of the partitition to create. |
|
The type of the partition to create. Valid types depends
on the partitioning scheme used:
|
|
The label to use for the partition. Leave blank if the
partition table scheme is mbr .
|
|
Flags to use for the partition. Valid flags depends on the
partitioning scheme used:
|
|
Currently unused. |
|
The file system to create in new partition. Leave
blank to skip creating a file system. See the
FilesystemCreate() method
for details.
|
|
Options to use for file system creation. See the
FilesystemCreate() method
for details.
|
|
The object path of the newly added partition. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not a partitition table |
non-system-internal
devicesystem-internal
deviceModifies meta data for a partition, such as type, label and flags. TODO: Consider allowing changing offset and size. Or maybe that should be a separate method.
|
The type of the partition to create. See the type parameter of the
PartitionCreate() method
for details on valid types.
|
|
The label to use for the partition. See the label parameter of the
PartitionCreate() method
for details on valid labels.
|
|
Flags to use for the partition. See the flags parameter of the
PartitionCreate() method
for details on valid flags
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the enclosing partition table device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not a partition |
non-system-internal
devicesystem-internal
device
Create a file system on a device. If
the luks_encrypt=
option is passed then an
LUKS encrypted block device will be created, then unlocked and
the file system will be created on the corresponding
cleartext device.
|
The type of file system to
create. Pass empty to not create a file
system and just clear the areas of the device known to host
file system signatures. Use @TODO@ to get a list of file systems that can
be created.
|
|
Supports the erase= option for erasing the contents of the device. To set the
label use label=NAME . Labels may not be supported
for all file systems and the allowed length of a label may vary (see @TODO@).
To create the file system on an LUKS encrypted
block device, pass the luks_encrypt= option with the
value set to the passphrase to use. For file systems with the concept of owners (e.g.
ext3 ), the options take_ownership_uid= and
take_ownership_gid= are supported and can be used to set the
initial owner of the created file system.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
non-system-internal
devicesystem-internal
device
Changes the file system label. See the options
parameter of
FilesystemCreate()
method for details of what valid labels are valid.
|
New label for file system. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy and changing the label requires an unmounted file system |
|
if the file system doesn't support labels, the label is too long |
|
if the job was cancelled |
non-system-internal
devicesystem-internal
device
Mount the device. If the device is referenced in the
system-wide /etc/fstab
file, the given
parameters are all ignored and the device will be
attempted to be mounted as the calling user.
|
File system type to use. |
|
Mount Options. Valid mount options include 'remount' and other mount options accepted by the native mount program. |
|
Where the device was mounted. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not a mountable file system |
|
if an invalid or malformed mount option was given |
|
if the device is already mounted |
|
if the remount option was given and the device wasn't mounted |
non-system-internal
devicesystem-internal
device
Unmount the device. If the device is referenced in the
system-wide /etc/fstab
file (both at
mount time and when this method is invoked), the device
will be attempted to be unmounted as the calling user.
|
Unmount options. Valid options currently include only 'force'. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if an invalid or malformed unmount option was given |
|
if the device is not mounted |
non-system-internal
device mounted by another usersystem-internal
device mounted by another userPerform a non-interactive file system check.
|
Currently unused. |
|
Returns TRUE if the file system is clean, FALSE if there are errors on the file system. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is mounted and the file system doesn't support online file system checking. See TODO for how to determine if a file system supports online fsck |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
non-system-internal
device.system-internal
device.List open files on a mounted file system.
|
An array of triples (pid , uid , command line for the process
image) for processes currently having open files on the given mounted file system.
Note that this operation is not run as a job.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is mounted and the file system doesn't support online file system checking. See TODO for how to determine if a file system supports online fsck |
|
if incoming parameters are invalid or an unknown error occured |
|
if the device is not a mountable file system |
|
if the file system is not mounted |
non-system-internal
device.system-internal
device.Sets up a cleartext device using the given device as backing store.
|
Passphrase for unlocking the cleartext data. |
|
Currently unused. |
|
The cleartext device created. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not LUKS encrypted |
|
if the device is already unlocked |
Tears down the cleartext device set up using
e.g. the LuksUnlock()
method.
|
Currently unused. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not LUKS encrypted |
|
if the device is not unlocked |
non-system-internal
device unlocked by another usersystem-internal
device unlocked by another userChange the passphrase used to unlock a LUKS encrypted device.
|
The current passphrase. |
|
The new passphrase. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
if the device is not LUKS encrypted |
non-system-internal
devicesystem-internal
deviceAdds a component to a Linux md RAID array. Existing data on the given component will be erased.
|
Object path of the component to add |
|
Currently unused. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device to add component to is not a Linux md RAID array |
|
given component doesn't exist |
non-system-internal
.
system-internal
components.
Removes a component from a Linux md RAID array. The component will be removed and then the signatures on the component will be erased according to the erase= option.
|
The component to remove from the array. |
|
Supports the erase= option for erasing the contents of the device. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device to remove component from is not a Linux md RAID array |
|
given component is not part of the array |
non-system-internal
.
system-internal
components.
Stops a Linux md RAID array.
|
Currently unused. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device is not a Linux md RAID array |
non-system-internal
.
system-internal
components.
Ejects media from the device.
|
Eject options. Currently no options are recognized. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
if the device or a dependent device (e.g. partition or cleartext luks device) is busy (e.g. mounted) |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device is not a drive |
|
if an invalid or malformed unmount option was given |
non-system-internal
devicesystem-internal
deviceRefreshes the S.M.A.R.T. data for the given drive. Note that this operation is not run as a job.
|
The option nowakeup can be passed to
avoid spinning up the disk if it's in a low-power mode.
The option simulate=/path/to/smartctl-output can be
passed to read the given file instead of invoking smartctl(8) tool.
The simulate= option can only be used by the super user.
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
device is not S.M.A.R.T. capable |
|
device is not a drive |
DriveSmartGetHistoricalData (in 't' since, in 't' until, out 'a(tdtsba(isiiiis))' data)
Retrieves historical S.M.A.R.T. data from the drive in the given time interval. Note that this is data collected and stored by the host as S.M.A.R.T. capable drives doesn't store or return historical data.
|
Don't fetch S.M.A.R.T. data collected earlier than this point in time (seconds since the Epoch Jan 1, 1970 0:00 UTC). |
|
Don't fetch S.M.A.R.T. data collected later than this point in time (seconds since the Epoch Jan 1, 1970 0:00 UTC). If 0 is passed the current time will be used. |
|
An array of historical S.M.A.R.T. data. Each element contains
the following members:
|
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device is not S.M.A.R.T. capable |
|
device is not a drive |
Runs a S.M.A.R.T. self test on the drive. TODO: need to figure out whether we need a return code.
|
The name of the test to run; supported values are 'short' (usually less than ten minutes) and 'long' (usually tens of minutes) and 'conveyance' (usually a few minutes). See the smartctl(1) man page for details. |
|
If TRUE then the drive will block access to the drive for the duration of the test. The method will error out if the drive is busy, e.g. if partitions are mounted. |
|
if the caller lacks the appropriate PolicyKit authorization |
|
component to add is busy |
|
if incoming parameters are invalid or an unknown error occured |
|
if the job was cancelled |
|
device is not S.M.A.R.T. capable |
|
device is not a drive |
Something on the device changed. Changes in job state wont
trigger this signal; see the JobChanged()
signal.
JobChanged ('b' job-in-progress, 'b' job-is-cancellable, 's' job-id, 'u' job-initiated-by-uid, '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. Clients should listen to this signal to avoid polling the daemon for job state.
|
Whether a job is currently in progress. |
|
Whether the job is cancellable. |
|
The identifier of the job. |
|
The UNIX user id of the user who initiated 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). |
OS specific native path of the device. On Linux this is the sysfs path, for example /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:1/2:0:1:0/block/sda
.
UNIX special device file for device. Example: /dev/sda
.
Symlinks to UNIX special device file that are stable and uniquely identifies the device.
Example: /dev/disk/by-id/scsi-SATA_ST910021AS_3MH05AVA
,
/dev/disk/by-id/ata-ST910021AS_3MH05AVA
.
Symlinks to UNIX special device file that uniquely identifies the port/partition the device
is plugged into. Example: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:1:0
TRUE if the device is considered system internal. Typically, system internal devices include non-removable internal hard disks and other drives that are not easily added/removed by a local console user. The heuristic typically used is that only devices on removable media and devices connected via Firewire, USB, eSATA and SDIO are considered external.
TRUE if the device is a partition. See the properties starting with partition- for details.
TRUE if the device contains a partition table. See partition- properties for details.
TRUE if the device contains removable media.
TRUE if media is available in the device.
TRUE if the device read-only.
TRUE if the device is a drive. See the drive- properties for details.
TRUE if the device is an optical drive and an optical disc is inserted. See the optical-disc- properties for details.
TRUE if the device is mounted.
Where the device is mounted.
This property is only valid if
device-is-mounted
is TRUE.
The UNIX user id of the user who mounted the device. Set to 0 if
not mounted by DeviceKit-disks.
This property is only valid if
device-is-mounted
is TRUE.
TRUE if device is a cleartext device backed by a LUKS encrypted device. See luks-cleartext- properties for details.
TRUE if device is currently busy. Is set if the device is in use; this can hapen, for example, if the device is mounted, if another block device is claiming it (e.g. a RAID drive) or if a job initiated from DeviceKit-disks is pending.
TRUE if the device is a Linux md RAID component. See linux-md-component- properties for details.
TRUE if the device is a Linux md RAID array. See linux-md- properties for details.
The size of the device in bytes.
The block size of the device in bytes.
The job properties specify if a job initiated via the
DeviceKit-disks daemon is currently in progress. A job
may be split into several sequential tasks; in that case
job-num-tasks
will be greater than one.
This property is used to identify the job and maps 1-1 with the names of the method calls on this interface, e.g. 'Erase', 'FilesystemCreate' and so on.
The UNIX user id of the user who initiated the job.
Whether the job can be cancelled
using JobCancel()
method.
Number of tasks in the job..
Current task number (zero-based offset).
Task identifier for current task. TODO: enumerate task id's.
Percentage completed of current task (between 0 and 100, negative if unknown).
A result of probing for signatures on the block device; known values are:
If blank, no known signature was detected. This doesn't necessarily mean the device contains no structured data; it only means that no signature known to the probing code was detected.
This property contains more information about the result
of probing the block device. It's value depends of the
value the
id-usage
property:
ext3
, vfat
)crypto_LUKS
mbr
(for the
Master Boot Record
scheme),
gpt
(for the
GUID Partition Table
scheme),
apm
(for the
Apple Partition Map
scheme).
LVM1_member
(for Linux LVM1 components),
LVM2_member
(for Linux LVM2 components),
linux_raid_member
(for Linux md (Software RAID) components)
swap
(for swap space),
suspend
(data used when resuming from STD)
The version of the
detected file system (or other identified data structure) identified by the
id-usage
and
id-type
properties.
The UUID (universally unique identifier) of the
detected file system (or other identified data structure) identified by the
id-usage
and
id-type
properties.
The user-visible label of the
detected file system (or other identified data structure) identified by the
id-usage
and
id-type
properties.
The encrypted LUKS device backing a crypto cleartext device.
This property is only valid if
device-is-luks-cleartext
is TRUE.
The UNIX user id of the user who unlocked the LUKS device. Set to 0 if
not unlocked by DeviceKit-disks.
This property is only valid if
device-is-luks-cleartext
is TRUE.
The object path of the partition table the partition is part of.
This property is only valid if
device-is-partition
is TRUE.
The scheme of the partition table this partition is part of.
See the scheme
parameter of the
PartitionTableCreate()
method
for details on known partitioning schemes.
This property is only valid if
device-is-partition
is TRUE.
The type of the partition.
See the type
parameter of the
PartitionCreate()
method
for details on known partitioning types.
This property is only valid if
device-is-partition
is TRUE.
The label of the partition.
See the label
parameter of the
PartitionCreate()
method
for details on partition labels.
This property is only valid if
device-is-partition
is TRUE.
The UUID of the partition.
See the uuid
parameter of the
PartitionCreate()
method
for details on partition UUID's.
This property is only valid if
device-is-partition
is TRUE.
Partition flags.
See the flags
parameter of the
PartitionCreate()
method
for details on partition flags.
This property is only valid if
device-is-partition
is TRUE.
Number of the partition. Typically partition numbers start at 1 and are identical
to the numbers used by the kernel. Note that partitions may not be sequentially
numbered.
This property is only valid if
device-is-partition
is TRUE.
Offset in bytes where the partition is located on the enclosing partition table device (see
partition-slave
).
This property is only valid if
device-is-partition
is TRUE.
Size of the partition in bytes.
This property is only valid if
device-is-partition
is TRUE.
The scheme of the partition table.
See the scheme
parameter of the
PartitionTableCreate()
method
for details on known partitioning schemes.
This property is only valid if
device-is-partition-table
is TRUE.
Number of partitions in the partition table.
This property is only valid if
device-is-partition-table
is TRUE.
The maximum value for
partition-number
of the enclosed partitions (partitions may not be sequentially numbered).
This property is only valid if
device-is-partition-table
is TRUE.
An array of size
partition-table-max-number
that contains the offsets (in bytes) of each partition.
The property
partition-number
on enclosed partitions can be used as an index in this array.
This property is only valid if
device-is-partition-table
is TRUE.
An array of size
partition-table-max-number
that contains the size (in bytes) of each partition.
The property
partition-number
on enclosed partitions can be used as an index in this array.
This property is only valid if
device-is-partition-table
is TRUE.
Name of the vendor of the drive, for example MATSHITA
or BELKIN
.
This property is only valid if
device-is-drive
is TRUE.
Name of the model of the drive, for example ST910021AS
or USB 2 HS-CF
.
This property is only valid if
device-is-drive
is TRUE.
Revision of the drive, for example 3.07
or 1.95
.
This property is only valid if
device-is-drive
is TRUE.
The serial number of the drive or blank if unknown.
Examples: 3MH05AVA
, A0000001B900
.
This property is only valid if
device-is-drive
is TRUE.
The interface through which the drive is connected. Known values include:
This property is only valid if
device-is-drive
is TRUE.
The nominal speed of the connection interface in bits per
second. If unknown this property is set to 0.
This property is only valid if
device-is-drive
is TRUE.
An array of media types that can be used in the drive. This property is sometimes set using quirk files if the hardware isn't capable of precisely reporting it. Known values include:
This property is only valid if
device-is-drive
is TRUE.
The type of media currently in the drive (blank if no media is available). Known
values include the ones listed for the
drive-media-compatibility
property.
This property is only valid if
device-is-drive
is TRUE.
TRUE only if the media can be physically ejected by issuing a command
from the host to the drive (e.g. optical drives). For devices, like iPod's,
that require an eject ioctl to be sent in order to be safely removed, use the
drive-requires-eject
property instead.
This property is only valid if
device-is-drive
is TRUE.
TRUE only if the drive requires an eject ioctl to be safely removed; typically
this includes multimedia devices like the iPod. If media can be physically
ejected from the drive, use the
drive-is-media-ejectable
property instead.
This property is only valid if
device-is-drive
is TRUE.
TRUE only if the disc is recordable.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if the disc is rewritable.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if the disc is appendable.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if the disc is appendable.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if the disc is appendable.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if the disc contains audio tracks.
This property is only valid if
device-is-optical-disc
is TRUE.
Number of tracks on the disc.
This property is only valid if
device-is-optical-disc
is TRUE.
Number of sessions on the disc.
This property is only valid if
device-is-optical-disc
is TRUE.
TRUE only if drive is S.M.A.R.T. capable.
TRUE only if S.M.A.R.T. is enabled for the drive.
This property is only valid if
drive-smart-time-collected
is greater than zero.
The point in time (seconds since the Epoch Jan 1, 1970
0:00 UTC) when the S.M.A.R.T. data was collected. If data
was never collected, this property will assume the value
0. This property is only valid if
drive-smart-is-capable
is TRUE.
TRUE only if the drive is assessed to be failing.
This property is only valid if
drive-smart-time-collected
is greater than zero.
Temperature of the drive, in degrees celcius.
This property is only valid if
drive-smart-time-collected
is greater than zero.
Number of seconds the drive has been powered on.
This property is only valid if
drive-smart-time-collected
is greater than zero.
The result of the last self-test. The following values are known:
This property is only valid if
drive-smart-time-collected
is greater than zero.
An array of S.M.A.R.T. attributes. Each element contains the following members
This property is only valid if
drive-smart-time-collected
is greater than zero.
The RAID level of the array the component is part of. Known values include
This property is only valid if
device-is-linux-md-component
is TRUE.
The number of component devices in the array the component is part of.
This property is only valid if
device-is-linux-md-component
is TRUE.
The UUID of the array the component is part of.
This property is only valid if
device-is-linux-md-component
is TRUE.
The name of the array the component is part of. Blank if the array
doesn't have a name (e.g. pre-1.0 meta data).
This property is only valid if
device-is-linux-md-component
is TRUE.
The version of superblock of the component.
This property is only valid if
device-is-linux-md-component
is TRUE.
The update time in the superblock of the component.
This property is only valid if
device-is-linux-md-component
is TRUE.
The events counter in the superblock of the component.
This property is only valid if
device-is-linux-md-component
is TRUE.
The RAID level of the array. For known values see the
linux-md-component-level
property.
This property is only valid if
device-is-linux-md
is TRUE.
Number of component devices in the array.
This property is only valid if
device-is-linux-md
is TRUE.
Metadata version used in the components.
This property is only valid if
device-is-linux-md
is TRUE.
An array of object paths for components currently part of the array.
This property is only valid if
device-is-linux-md
is TRUE.
Records the state of each component in the array
linux-md-slaves
.
Valid values include
This property is only valid if
device-is-linux-md
is TRUE.
TRUE only if the array is running in degraded mode.
This property is only valid if
device-is-linux-md
is TRUE.
The operation currently pending on the array. Known values include
This property is only valid if
device-is-linux-md
is TRUE.
The progress of the current sync operation.
This property is only valid if
device-is-linux-md
is TRUE and the value of the property
linux-md-sync-action
is not idle
.
The speed of the sync operation in bytes per second.
This property is only valid if
device-is-linux-md
is TRUE and the value of the property
linux-md-sync-action
is not idle
.