[Thunar-dev] thunar-volman 0.1.0

Mathias Brodala info at noctus.net
Tue Jan 16 18:09:31 CET 2007


Hello Benedikt.

Benedikt Meurer, 16.01.2007 17:46:
> Mathias Brodala wrote:
>>> With information about the device tree I could try to add some more
>>> smartness to exo-hal to figure out an even better name for your flashdisk.
>> You’re talking about my devices? What exactly do you need?
> 
> hal-device dump of the volume, it's storage device and the parent of the
> storage device might help.

Here it is:

> 0: udi = '/org/freedesktop/Hal/devices/volume_uuid_F874_A601'
>   volume.unmount.valid_options = { 'lazy' } (string list)
>   volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', '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 list)
>   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_F874_A601'  (string)
>   info.product = 'Volume (vfat)'  (string)
>   volume.size = 131072000  (0x7d00000)  (uint64)
>   volume.num_blocks = 256000  (0x3e800)  (int)
>   volume.block_size = 512  (0x200)  (int)
>   info.capabilities = { 'volume', 'block' } (string list)
>   info.category = 'volume'  (string)
>   volume.is_partition = false  (bool)
>   volume.is_disc = false  (bool)
>   volume.linux.is_device_mapper = false  (bool)
>   volume.is_mounted_read_only = false  (bool)
>   volume.is_mounted = false  (bool)
>   volume.mount_point = ''  (string)
>   volume.label = ''  (string)
>   volume.uuid = 'F874-A601'  (string)
>   volume.fsversion = 'FAT32'  (string)
>   volume.fsusage = 'filesystem'  (string)
>   volume.fstype = 'vfat'  (string)
>   storage.model = ''  (string)
>   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_USB_2_0_128MB_31191A401F52404B'  (string)
>   block.is_volume = true  (bool)
>   block.minor = 0  (0x0)  (int)
>   block.major = 8  (0x8)  (int)
>   block.device = '/dev/sda'  (string)
>   linux.hotplug_type = 3  (0x3)  (int)
>   info.parent = '/org/freedesktop/Hal/devices/storage_serial_USB_USB_2_0_128MB_31191A401F52404B'  (string)
>   linux.sysfs_path_device = '/sys/block/sda/fakevolume'  (string)
>   linux.sysfs_path = '/sys/block/sda/fakevolume'  (string)
> 
> 1: udi = '/org/freedesktop/Hal/devices/storage_serial_USB_USB_2_0_128MB_31191A401F52404B'
>   info.addons = { 'hald-addon-storage' } (string list)
>   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_USB_2_0_128MB_31191A401F52404B'  (string)
>   info.udi = '/org/freedesktop/Hal/devices/storage_serial_USB_USB_2_0_128MB_31191A401F52404B'  (string)
>   storage.partitioning_scheme = 'none'  (string)
>   storage.removable.media_size = 131072000  (0x7d00000)  (uint64)
>   storage.requires_eject = false  (bool)
>   storage.hotpluggable = true  (bool)
>   info.capabilities = { 'storage', 'block' } (string list)
>   info.category = 'storage'  (string)
>   info.product = 'USB 2.0 128MB'  (string)
>   info.vendor = ''  (string)
>   storage.size = 0  (0x0)  (uint64)
>   storage.removable = true  (bool)
>   storage.removable.media_available = true  (bool)
>   storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_ea0_2168_31191A401F52404B_if0'  (string)
>   storage.lun = 0  (0x0)  (int)
>   storage.firmware_version = '2.00'  (string)
>   storage.serial = 'USB_USB_2.0_128MB_31191A401F52404B'  (string)
>   storage.vendor = ''  (string)
>   storage.model = 'USB 2.0 128MB'  (string)
>   storage.drive_type = 'disk'  (string)
>   storage.automount_enabled_hint = true  (bool)
>   storage.media_check_enabled = true  (bool)
>   storage.no_partitions_hint = false  (bool)
>   storage.bus = 'usb'  (string)
>   block.is_volume = false  (bool)
>   block.minor = 0  (0x0)  (int)
>   block.major = 8  (0x8)  (int)
>   block.device = '/dev/sda'  (string)
>   linux.hotplug_type = 3  (0x3)  (int)
>   info.parent = '/org/freedesktop/Hal/devices/usb_device_ea0_2168_31191A401F52404B_if0_scsi_host_scsi_device_lun0'  (string)
>   linux.sysfs_path_device = '/sys/block/sda'  (string)
>   linux.sysfs_path = '/sys/block/sda'  (string)
> 

I guess you could use volume.label of the device but I must admit that I don’t
know how to set volume labels for fat32 partitions/devices. I tried mkdosfs but
the label did not appear in hal-device’s output.


Regards, Mathias

-- 
debian/rules

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20070116/3aac7cdf/attachment.pgp>


More information about the Thunar-dev mailing list