How to use hal methods to mount,umount volume?
zhihuaye
zhihuaye at gmail.com
Thu Jun 5 08:41:58 PDT 2008
I want to use dbus-send to send a method to umount the usb volume.
However,the error is shown below:
dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/volume_uuid_4409_6AFB org.freedesktop.Hal.Device.Volume.Unmount
Error org.freedesktop.DBus.Error.UnknownMethod: Method "UnMount" with signature "" on interface "org.freedesktop.Hal.Device.Volume" doesn't exist
I use "lshal" to see the hal info:
udi = '/org/freedesktop/Hal/devices/volume_uuid_4409_6AFB'
volume.unmount.valid_options = {'lazy'} (string list)
volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'sho
rtname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid='} (string list)
org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string lis
t)
org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string
list)
org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
volume.ignore = false (bool)
info.udi = '/org/freedesktop/Hal/devices/volume_uuid_4409_6AFB' (string)
..........
As you can see,the Unmount method is right there.
How can I solve it?
Thanks!
zhihuaye
2008-06-05
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20080605/fe85e4c7/attachment.htm
More information about the hal
mailing list