Improve debug output and support for the detach helper
authorDavid Zeuthen <davidz@redhat.com>
Tue, 23 Feb 2010 20:56:12 +0000 (15:56 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 23 Feb 2010 20:56:12 +0000 (15:56 -0500)
commitb70ea184e035d9ff7b5218c135b766cfdd3ca394
tree0e530e3d93913883d4631d7a68dc95be267a827e
parent44f4034173522f1de6f7f1ae625431e9905887e3
Improve debug output and support for the detach helper

This allows easily invoking the tool from a shell, like this

 $ sudo /usr/libexec/udisks-helper-drive-detach /dev/sdb
 Detaching device: /dev/sdb
 SYNCHRONIZE CACHE: FAILED: No such file or directory
 (Continuing despite SYNCHRONIZE CACHE failure.)
 STOP UNIT: OK
 Unbind USB interface driver: OK
 Suspend USB Device: OK
 $ echo $?
 0
src/device.c
src/helpers/job-drive-detach.c