From: David Zeuthen Date: Fri, 2 Sep 2011 20:21:38 +0000 (-0400) Subject: Document the atasmart_blob option X-Git-Tag: upstream/2.1.2~477 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8186b1aee7cacd72dca6c2548a3550d609a908a0;p=platform%2Fupstream%2Fudisks2.git Document the atasmart_blob option Signed-off-by: David Zeuthen --- diff --git a/data/org.freedesktop.UDisks2.xml b/data/org.freedesktop.UDisks2.xml index cad5dfc..a490a11 100644 --- a/data/org.freedesktop.UDisks2.xml +++ b/data/org.freedesktop.UDisks2.xml @@ -292,6 +292,12 @@ state, the error org.freedesktop.UDisks.Error.WouldWakeup 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. --> diff --git a/src/udiskslinuxdriveata.c b/src/udiskslinuxdriveata.c index a9af71a..d4eaecd 100644 --- a/src/udiskslinuxdriveata.c +++ b/src/udiskslinuxdriveata.c @@ -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) {