84
84
<property name="WWN" type="s" access="read"/>
87
A unique and persistent identifier for the device or blank if
88
no such identifier is available.
90
This identifier is guaranteed to not include the slash
91
character '/' (U+002F SOLIDUS) which means it can be used as
95
<quote>ST32000542AS-6XW00W51</quote>,
96
<quote>HITACHI-HTS723232A7A364-E3834563KRG2HN</quote>,
97
<quote>INTEL-SSDSA2MH080G1GC-CVEM842101HD080DGN</quote>.
99
<property name="Id" type="s" access="read"/>
102
A set of configuration directives that are applied to the
103
drive when it is connected (e.g. at start-up, hotplug or
106
This is an dict of items with the following known keys:
109
<term>ata-pm-standby (type <literal>'i'</literal>)</term>
111
The spindown timeout for ATA drives (See ATA command <quote>STANDBY</quote>).
115
<term>ata-apm-level (type <literal>'i'</literal>)</term>
117
The APM level for ATA drives (See ATA command <quote>SET FEATURES</quote>, sub-commands 0x05 and 0x85).
121
<term>ata-aam-level (type <literal>'i'</literal>)</term>
123
The AAM level for ATA drives (See ATA command <quote>SET FEATURES</quote>, sub-commands 0x42 and 0xc2).
127
The contents of this property is read from the configuration
128
file <filename>/etc/udisks2/IDENTIFIER.conf</filename>
129
where <emphasis>IDENTIFIER</emphasis> is the value of the
130
#org.freedesktop.UDisks2.Drive:Id property. See <xref
131
linkend="udisks.8"/> for the file format of this file.
133
Use the org.freedesktop.UDisks2.Drive.SetConfiguration()
134
method to change the value of this property.
136
<property name="Configuration" type="a{sv}" access="read"/>
86
138
<!-- Media: The kind of media currently in the drive or blank if unknown.
87
139
See the #org.freedesktop.UDisks2.Drive:MediaCompatibility property for known values.
452
523
<arg name="options" direction="in" type="a{sv}"/>
526
<!-- PmSupported: Whether the drive supports power management. -->
527
<property name="PmSupported" type="b" access="read"/>
529
<!-- PmEnabled: Whether power management is enabled. -->
530
<property name="PmEnabled" type="b" access="read"/>
532
<!-- ApmSupported: Whether the drive supports Advanced Power Management (APM). -->
533
<property name="ApmSupported" type="b" access="read"/>
535
<!-- ApmEnabled: Whether Advanced Power Management (APM) is enabled. -->
536
<property name="ApmEnabled" type="b" access="read"/>
538
<!-- AamSupported: Whether the drive supports Automatic Acoustic Management (AAM). -->
539
<property name="AamSupported" type="b" access="read"/>
541
<!-- AamEnabled: Whether Automatic Acoustic Management (AAM) is enabled. -->
542
<property name="AamEnabled" type="b" access="read"/>
544
<!-- AamVendorRecommendedValue: The vendor-recommended AAM value (or 0 if AAM is not supported). -->
545
<property name="AamVendorRecommendedValue" type="i" access="read"/>
549
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
550
@state: The current power state.
552
Get the current power mode status. This is implemented as a
553
method call as it involves sending a command from the host to
554
the drive and no change notification is available.
556
The format of @state is the result obtained from sending the
557
ATA command <quote>CHECK POWER MODE</quote> to the drive.
560
<varlistentry><term>0x00</term><listitem><para>Standby</para></listitem></varlistentry>
561
<varlistentry><term>0x80</term><listitem><para>Idle</para></listitem></varlistentry>
562
<varlistentry><term>0xff</term><listitem><para>Active/Idle</para></listitem></varlistentry>
564
Typically user interfaces will report "Drive is spun down" if @state is
565
0x00 and "Drive is spun up" otherwise.
567
<method name="PmGetState">
568
<arg name="options" direction="in" type="a{sv}"/>
569
<arg name="state" direction="out" type="y"/>
574
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
576
Force the drive to immediately enter the low power consumption
577
<emphasis>standby</emphasis> mode, usually causing it to spin
578
down. This is done by sending the ATA command
579
<quote>STANDBY IMMEDIATE</quote> to the drive.
581
<method name="PmStandby">
582
<arg name="options" direction="in" type="a{sv}"/>
587
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
589
Force the drive to immediately wake up (exiting the low power
590
consumption <emphasis>standby</emphasis> mode), usually
591
causing it to spin up. This is done by reading data from the
594
<method name="PmWakeup">
595
<arg name="options" direction="in" type="a{sv}"/>
598
<!-- SecurityEraseUnitMinutes:
599
The estimated amount of minutes it takes to complete the
600
<quote>SECURITY ERASE UNIT</quote> command or 0 if this
601
command is not available.
603
If set to 510 it means that it takes at least 508 minutes to
604
complete the operation.
606
<property name="SecurityEraseUnitMinutes" type="i" access="read"/>
608
<!-- SecurityEnhancedEraseUnitMinutes:
609
The estimated amount of minutes it takes to complete the
610
<quote>SECURITY ERASE UNIT</quote> command with enhanced mode
611
specified or 0 if enhanced erase is not available.
613
If set to 510 it means that it takes at least 508 minutes to
614
complete the operation.
616
<property name="SecurityEnhancedEraseUnitMinutes" type="i" access="read"/>
619
If set to %TRUE the unit is frozen.
621
<property name="SecurityFrozen" type="b" access="read"/>
625
@options: Options - known options (in addition to <link linkend="udisks-std-options">standard options</link>) includes <parameter>enhanced</parameter> (of type 'b').
627
Does all the necessary checks and preparations and then sends
628
the <quote>SECURITY ERASE UNIT</quote> command to the
629
drive. If the option @enhanced is set to %TRUE an
630
<emphasis>enhanced secure erase</emphasis> is requested.
632
All data on the drive will be irrevocably erased.
634
This operation takes either
635
#org.freedesktop.UDisks2.Drive.Ata:SecurityEraseUnitMinutes or
636
#org.freedesktop.UDisks2.Drive.Ata:SecurityEnhancedEraseUnitMinutes
637
minutes to complete depending on whether the @enhanced option
640
<method name="SecurityEraseUnit">
641
<arg name="options" direction="in" type="a{sv}"/>
457
647
<!-- ********************************************************************** -->
869
1066
<arg name="fd" direction="out" type="h"/>
1071
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
1072
@fd: An index for the returned file descriptor.
1074
Gets a file descriptor for the device that is suitable to be
1075
used for benchmarking the device (transfer rate, access time
1076
etc.). Note that the file descriptor may be opened with the
1077
<literal>O_DIRECT</literal> and <literal>O_SYNC</literal>
1078
flags so care must be taken to only perform page-aligned I/O.
1080
If the <parameter>writable</parameter> in @options is %TRUE
1081
then the returned file descriptor will be writable. This only
1082
works if the device is not already in use.
1084
<method name="OpenForBenchmark">
1085
<annotation name="org.gtk.GDBus.C.UnixFD" value="1"/>
1086
<arg name="options" direction="in" type="a{sv}"/>
1087
<arg name="fd" direction="out" type="h"/>
1092
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
1094
Request that the kernel and core OS rescans the contents of
1095
the device and update their state to reflect this (including
1096
things such as the <filename>/dev/disk/</filename> hierarchy
1097
of symlinks). This includes requesting that the kernel
1098
re-reads the partition table, if appropriate.
1100
This is usually not needed since the OS automatically does
1101
this when the last process with a writable file descriptor for
1102
the device closes it.
1104
<method name="Rescan">
1105
<arg name="options" direction="in" type="a{sv}"/>
874
1110
<!-- ********************************************************************** -->
1344
1580
things, this can be used to draw a spinner in the user interface
1345
1581
next to e.g. an icon for the drive or device in question.
1347
A job <emphasis>may</emphasis> convey progress (if the
1348
underlying tool used supports it), see the
1349
#org.freedesktop.UDisks2.Job:ExpectedEndTime property.
1583
The #org.freedesktop.UDisks2.Job:Operation property is used to
1584
convey the type of job currently in progress.
1586
The user id of the user who started the job is set in the
1587
#org.freedesktop.UDisks2.Job:StartedByUID property.
1589
A job <emphasis>may</emphasis> convey how much progress has been
1590
made, see the #org.freedesktop.UDisks2.Job:Progress and
1591
#org.freedesktop.UDisks2.Job:ProgressValid properties.
1351
1593
When a job completes, the #org.freedesktop.UDisks2.Job::Completed signal
1354
To cancel a job use the org.freedesktop.UDisks2.Job.Cancel()
1355
method. This will cause the job to complete (with @success set
1356
to %FALSE) and the D-Bus method used to initiate the operation
1357
to return, usually returning the <literal>org.freedesktop.UDisks2.Error.Cancelled</literal> error.
1596
A job may or may not be cancelable, see the
1597
#org.freedesktop.UDisks2.Job:Cancelable property. To cancel a
1598
job use the org.freedesktop.UDisks2.Job.Cancel() method. This
1599
will cause the job to complete (with @success set to %FALSE) and
1600
the D-Bus method used to initiate the operation to return,
1601
usually returning the
1602
<literal>org.freedesktop.UDisks2.Error.Cancelled</literal>
1359
1605
<interface name="org.freedesktop.UDisks2.Job">
1361
<!-- Progress: How much progress has been made. Values are in the range 0 to 1. -->
1608
The type of the operation that the job represents.
1610
Known job operation types include:
1612
<varlistentry><term>ata-smart-selftest</term>
1613
<listitem><para>SMART self-test operation.</para></listitem></varlistentry>
1614
<varlistentry><term>drive-eject</term>
1615
<listitem><para>Ejecting the medium from a drive.</para></listitem></varlistentry>
1616
<varlistentry><term>encrypted-unlock</term>
1617
<listitem><para>Unlocking encrypted device.</para></listitem></varlistentry>
1618
<varlistentry><term>encrypted-lock</term>
1619
<listitem><para>Locking encrypted device.</para></listitem></varlistentry>
1620
<varlistentry><term>encrypted-modify</term>
1621
<listitem><para>Modifying encrypted device.</para></listitem></varlistentry>
1622
<varlistentry><term>swapspace-start</term>
1623
<listitem><para>Starting swapspace.</para></listitem></varlistentry>
1624
<varlistentry><term>swapspace-stop</term>
1625
<listitem><para>Stopping swapspace.</para></listitem></varlistentry>
1626
<varlistentry><term>filesystem-mount</term>
1627
<listitem><para>Mounting a filesystem.</para></listitem></varlistentry>
1628
<varlistentry><term>filesystem-unmount</term>
1629
<listitem><para>Unmounting a filesystem.</para></listitem></varlistentry>
1630
<varlistentry><term>filesystem-modify</term>
1631
<listitem><para>Modifying a filesystem.</para></listitem></varlistentry>
1632
<varlistentry><term>format-erase</term>
1633
<listitem><para>Erasing a device.</para></listitem></varlistentry>
1634
<varlistentry><term>format-mkfs</term>
1635
<listitem><para>Creating a filesystem.</para></listitem></varlistentry>
1636
<varlistentry><term>loop-setup</term>
1637
<listitem><para>Setting up a loop device.</para></listitem></varlistentry>
1638
<varlistentry><term>partition-modify</term>
1639
<listitem><para>Modifying a partition.</para></listitem></varlistentry>
1640
<varlistentry><term>partition-delete</term>
1641
<listitem><para>Deleting a partition.</para></listitem></varlistentry>
1642
<varlistentry><term>partition-create</term>
1643
<listitem><para>Creating a partition.</para></listitem></varlistentry>
1644
<varlistentry><term>cleanup</term>
1645
<listitem><para>Cleaning up devices that were removed without being properly unmounted or shut down.</para></listitem></varlistentry>
1648
<link linkend="udisks-client-get-job-description">udisks_client_get_job_description()</link>
1649
function can be used to get a localized human readable description.
1651
<property name="Operation" type="s" access="read"/>
1654
How much progress has been made. Values are in the range 0 to 1.
1656
Do not use unless #org.freedesktop.UDisks2.Job:ProgressValid is %TRUE.
1362
1658
<property name="Progress" type="d" access="read"/>
1660
<!-- ProgressValid: Set to %TRUE if the #org.freedesktop.UDisks2.Job:Progress is valid. -->
1661
<property name="ProgressValid" type="b" access="read"/>
1363
1663
<!-- StartTime:
1365
The point in time (seconds since the <ulink
1665
The point in time (micro-seconds since the <ulink
1366
1666
url="http://en.wikipedia.org/wiki/Unix_epoch">Unix
1367
1667
Epoch</ulink>) that the job was started.
1369
1669
<property name="StartTime" type="t" access="read"/>
1370
1671
<!-- ExpectedEndTime:
1372
The expected point in time (seconds since the <ulink
1673
The expected point in time (micro-seconds since the <ulink
1373
1674
url="http://en.wikipedia.org/wiki/Unix_epoch">Unix
1374
1675
Epoch</ulink>) that the job will complete or 0 if unknown.
1378
1679
<!-- Objects: The objects that the job is related to, if any. -->
1379
1680
<property name="Objects" type="ao" access="read"/>
1683
The id of the user who started the job or 0 if started
1684
by root or not through udisks.
1686
<property name="StartedByUID" type="u" access="read"/>
1383
1690
@options: Options (currently unused except for <link linkend="udisks-std-options">standard options</link>).
1692
Cancels the job. Fails with the
1693
<literal>org.freedesktop.UDisks2.Error.Failed</literal> error
1694
if #org.freedesktop.UDisks2.Job:Cancelable is %FALSE.
1387
1696
<method name="Cancel">
1388
1697
<arg name="options" direction="in" type="a{sv}"/>
1700
<!-- Cancelable: Whether the job can be canceled. -->
1701
<property name="Cancelable" type="b" access="read"/>
1393
1705
@success: If %TRUE, the job completed successfully.