diff options
author | David Zeuthen <zeuthen@gmail.com> | 2012-09-14 11:03:19 -0400 |
---|---|---|
committer | David Zeuthen <zeuthen@gmail.com> | 2012-09-14 11:03:19 -0400 |
commit | f9f5cb797ed4af6fa0ef9096fba7a9d5b9902010 (patch) | |
tree | ef1f614cb7d1b577900e581c6b9e8448d08b070a /data | |
parent | c4a7dd4483d7b0ae97a8ac3028571439b9507f9c (diff) |
Slightly change how the MDRaid:ActiveDevice property works
It's easier to use from applications if it's an array with a fixed
size.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.UDisks2.xml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/data/org.freedesktop.UDisks2.xml b/data/org.freedesktop.UDisks2.xml index 1280918..b427d35 100644 --- a/data/org.freedesktop.UDisks2.xml +++ b/data/org.freedesktop.UDisks2.xml @@ -1650,27 +1650,26 @@ <property name="Degraded" type="u" access="read"/> <!-- ActiveDevices: - This property is a dictionary from the position of the member device - in question (0, 1, 2, up to but not including #org.freedesktop.UDisks2.MDRaid:NumDevices) - into a struct of with the following members + This property is an array with #org.freedesktop.UDisks2.MDRaid:NumDevices elements if + the array is running, zero elements otherwise. Each element of the array is a struct + with the following members: <variablelist> <varlistentry><term>block (type 'o')</term> - <listitem><para>The object for the underlying block device - guaranteed to implement the #org.freedesktop.UDisks2.Block interface</para></listitem></varlistentry> + <listitem><para>If there is no member in the given position this is set to '/', otherwise it is the object path for the underlying block device (guaranteed to implement the #org.freedesktop.UDisks2.Block interface)</para></listitem></varlistentry> <varlistentry><term>state (type 's')</term> - <listitem><para>The state of the member, e.g. one of <literal>faulty</literal>, <literal>in_sync</literal>, <literal>writemostly</literal>, <literal>blocked</literal> and <literal>spare</literal></para></listitem></varlistentry> - <varlistentry><term>errors (type 't')</term> - <listitem><para>Ongoing count of read errors that have been detected on this device but have not caused the device to be evicted from the array</para></listitem></varlistentry> + <listitem><para>Blank if there is no member in the position, otherwise the state of the member, e.g. one of <literal>faulty</literal>, <literal>in_sync</literal>, <literal>writemostly</literal>, <literal>blocked</literal> and <literal>spare</literal></para></listitem></varlistentry> + <varlistentry><term>num_read_errors (type 't')</term> + <listitem><para>Zero if there is no member in the position in question, otherwise an ongoing count of read errors that have been detected on this device but have not caused the device to be evicted from the array</para></listitem></varlistentry> <varlistentry><term>expansion (type 'a{sv}')</term> <listitem><para>Currently unused. Intended for future expansion.</para></listitem></varlistentry> </variablelist> - - This property and its struct members corresponds to the + This property correspond to the <literal>rdNN</literal> symlinks in sysfs and the sysfs files in each directory. See the <filename><ulink url="http://www.kernel.org/doc/Documentation/md.txt">Documentation/md.txt</ulink></filename> file shipped with the kernel sources. --> - <property name="ActiveDevices" type="a{u(osta{sv})}" access="read"/> + <property name="ActiveDevices" type="a(osta{sv})" access="read"/> <!-- Start: |