From 1b29dafb9c520094f69edec5eda76089efbd70ec Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 21 Nov 2011 13:36:22 -0500 Subject: [PATCH] Add shell-snippet showing how to update the ATA smart data gdbus call --system --dest org.freedesktop.UDisks2 \ --object-path /org/freedesktop/UDisks2/drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30039835 \ --method org.freedesktop.UDisks2.Drive.Ata.SmartUpdate \ "{'atasmart_blob': <'$ATA_SMART_BLOB'>}" Signed-off-by: David Zeuthen --- data/org.freedesktop.UDisks2.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/org.freedesktop.UDisks2.xml b/data/org.freedesktop.UDisks2.xml index 35ed6db..e5d85d4 100644 --- a/data/org.freedesktop.UDisks2.xml +++ b/data/org.freedesktop.UDisks2.xml @@ -364,7 +364,14 @@ 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. + - it only exists for testing purposes. Example: + +# export ATA_SMART_BLOB=/usr/share/doc/libatasmart-devel-0.17/Maxtor_96147H8--BAC51KJ0--2 ; \ + gdbus call --system --dest org.freedesktop.UDisks2 \ + --object-path /org/freedesktop/UDisks2/drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30039835 \ + --method org.freedesktop.UDisks2.Drive.Ata.SmartUpdate \ + "{'atasmart_blob': <'$ATA_SMART_BLOB'>}" + --> -- 2.7.4