how to suggest filesystem type for a volume?
Artem Baguinski
artm at v2.nl
Sat Sep 4 14:20:18 PDT 2004
i'd like to force filesystem type on my portable audio player to vfat
instead of msdos.
the following is the output of lshal:
udi = '/org/freedesktop/Hal/devices/block_8_1'
volume.mount_point = '/media/lyra' (string)
info.udi = '/org/freedesktop/Hal/devices/block_8_1' (string)
volume.is_filesystem = true (bool)
volume.is_mounted = true (bool)
volume.is_disc = false (bool)
volume.uuid = '' (string)
volume.label = '' (string)
volume.fstype = 'msdos' (string)
info.product = 'Volume (msdos)' (string)
block.storage_device = '/org/freedesktop/Hal/devices/block_8_0' (string)
block.minor = 1 (0x1) (int)
block.major = 8 (0x8) (int)
info.capabilities = 'block volume' (string)
info.category = 'volume' (string)
info.parent = '/org/freedesktop/Hal/devices/block_8_0' (string)
block.device = '/dev/sda1' (string)
block.is_volume = true (bool)
block.have_scanned = false (bool)
block.no_partitions = false (bool)
linux.sysfs_path_device = '/sys/block/sda/sda1' (string)
linux.sysfs_path = '/sys/block/sda/sda1' (string)
info.bus = 'block' (string)
udi = '/org/freedesktop/Hal/devices/block_8_0'
info.udi = '/org/freedesktop/Hal/devices/block_8_0' (string)
storage.hotpluggable = true (bool)
storage.removable = false (bool)
storage.drive_type = 'lyra' (string)
info.product = 'PDP2444_48Player' (string)
info.vendor = 'Thomson' (string)
block.storage_device = '/org/freedesktop/Hal/devices/block_8_0' (string)
storage.physical_device =
'/org/freedesktop/Hal/devices/usb_usb_device_69b_300c_1_-1_3870D882401E0000_0'
(string)
storage.vendor = 'Thomson' (string)
storage.model = 'PDP2444_48Player' (string)
storage.automount_enabled_hint = true (bool)
storage.no_partitions_hint = false (bool)
storage.media_check_enabled = true (bool)
storage.bus = 'usb' (string)
block.minor = 0 (0x0) (int)
block.major = 8 (0x8) (int)
info.capabilities = 'block storage' (string)
info.category = 'storage' (string)
info.parent = '/org/freedesktop/Hal/devices/scsi_5_0_0_0' (string)
block.device = '/dev/sda' (string)
block.is_volume = false (bool)
block.have_scanned = true (bool)
block.no_partitions = false (bool)
linux.sysfs_path_device = '/sys/block/sda' (string)
linux.sysfs_path = '/sys/block/sda' (string)
info.bus = 'block' (string)
this is the thompson-lyra.fdi i'm using now:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="storage.model" string="PDP2444_48Player">
<merge key="storage.drive_type" type="string">lyra</merge>
</match>
</device>
<device>
<match key="usb_device.vendor_id" int="0x069b">
<match key="usb_device.product_id" int="0x300c">
<merge key="info.capabilities"
type="string">portable_audio_player</merge>
<merge key="info.category"
type="string">portable_audio_player</merge>
<merge key="portable_audio_player.output_formats"
type="string">audio/mpeg audio/x-ms-wma</merge>
</match>
</match>
</device>
</deviceinfo>
i'd like to say in a first device "for all children set volume.fstype =
'vfat'"
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list