Document the atasmart_blob option
authorDavid Zeuthen <davidz@redhat.com>
Fri, 2 Sep 2011 20:21:38 +0000 (16:21 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 2 Sep 2011 20:21:38 +0000 (16:21 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
data/org.freedesktop.UDisks2.xml
src/udiskslinuxdriveata.c

index cad5dfc..a490a11 100644 (file)
         state, the error
         <literal>org.freedesktop.UDisks.Error.WouldWakeup</literal> is
         returned.
+
+        The option @atasmart_blob can be used to inject libatasmart
+        compatible blobs for testing how clients react to different
+        kinds of SMART data. Only uid 0 may use this. This option may
+        be removed in the future with it being considered an ABI break
+        - it only exists for testing purposes.
     -->
     <method name="SmartUpdate">
       <arg name="options" direction="in" type="a{sv}"/>
index a9af71a..d4eaecd 100644 (file)
@@ -572,7 +572,7 @@ handle_smart_update (UDisksDriveAta        *_drive,
     }
 
   g_variant_lookup (options, "nowakeup", "b", &nowakeup);
-  g_variant_lookup (options, "atasmart-blob", "s", &atasmart_blob);
+  g_variant_lookup (options, "atasmart_blob", "s", &atasmart_blob);
 
   if (atasmart_blob != NULL)
     {