[Pkg-utopia-maintainers] Bug#510001: lshal reports incorrect volume.label and volume.fstype after reformat

Richard rprosper at telegraaf.nl
Sun Dec 28 13:03:26 UTC 2008


Package: hal
Version: 0.5.11-6
Severity: normal


`/usr/bin/lshal` incorrectly reports the volume.fstype and volume.label 
(in this case, for a preformatted VFAT Toshiba 31/2" External USB HD which 
was reformatted to Ext3. The drive has only one partition.).

lshal reports that
  
  block.device = '/dev/sde1'  (string)
  volume.fstype = 'vfat'  (string)
  volume.fsversion = 'FAT32'  (string)

whereas this should be
  
  block.device = '/dev/sde1'  (string)
  volume.fstype = 'ext3'  (string)
  volume.fsversion = '1.0'  (string)

(The complete, relevant sections from lshal's output are below.)

Output from `/usr/bin/vol_id /dev/sde1` (correctly) reports

ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=632bf4bc-93ef-4dc5-b5df-00f340d1c16f
ID_FS_UUID_ENC=632bf4bc-93ef-4dc5-b5df-00f340d1c16f
ID_FS_LABEL=200812241405
ID_FS_LABEL_ENC=200812241405
ID_FS_LABEL_SAFE=200812241405

(vol_id does not give any version information, but the udev-package is version 0.125-7).

I'm running 'testing' on a IBM Thinkpad R51, linux-image-2.6.26-1-686, version 2.6.26-12
(Note that `uname -a` reports 'Linux hostname 2.6.22-3-686 #1 SMP Sun Feb 10 20:20:49 UTC 2008 i686 GNU/Linux')
Package libc6/libc-686 is version 2.7-16

Sections of lshal's output that may prove useful (or not):

udi = '/org/freedesktop/Hal/devices/computer'
  info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list)
  info.callouts.add = {'hal-storage-cleanup-all-mountpoints'} (string list)
  info.capabilities = {'cpufreq_control'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.SystemPowerManagement', 'org.freedesktop.Hal.Device.CPUFreq'} (string list)
  info.product = 'Computer'  (string)
  info.subsystem = 'unknown'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer'  (string)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '', 'enable_power_save'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_names = {'Suspend', 'SuspendHybrid', 'Hibernate', 'Shutdown', 'Reboot', 'SetPowerSave'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures = {'i', 'i', '', '', '', 'b'} (string list)
  power_management.acpi.linux.version = '20070126'  (string)
  power_management.can_hibernate = true  (bool)
  power_management.can_suspend = true  (bool)
  power_management.can_suspend_hybrid = true  (bool)
  power_management.is_powersave_set = false  (bool)
  power_management.quirk.none = true  (bool)
  power_management.type = 'acpi'  (string)
  system.chassis.manufacturer = 'IBM'  (string)
  system.chassis.type = 'Notebook'  (string)
  system.firmware.release_date = '02/21/2005'  (string)
  system.firmware.vendor = 'IBM'  (string)
  system.firmware.version = '1VET63WW (1.21 )'  (string)
  system.formfactor = 'laptop'  (string)
  system.hardware.primary_video.product = 13698  (0x3582)  (int)
  system.hardware.primary_video.vendor = 32902  (0x8086)  (int)
  system.hardware.product = '2887K2G'  (string)
  system.hardware.serial = '99WXRW1'  (string)
  system.hardware.uuid = 'F06EB201-4824-11CB-82D0-94B85A95F133'  (string)
  system.hardware.vendor = 'IBM'  (string)
  system.hardware.version = 'ThinkPad R51'  (string)
  system.kernel.machine = 'i686'  (string)
  system.kernel.name = 'Linux'  (string)
  system.kernel.version = '2.6.22-3-686'  (string)
  system.product = '2887K2G ThinkPad R51'  (string)

udi = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_USB_3_5__HDD_000DE559_0_0'
  block.device = '/dev/sde'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 64  (0x40)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_USB_3_5__HDD_000DE559_0_0'  (string)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_930_b09_000DE559_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'USB 3.5"-HDD'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_USB_3_5__HDD_000DE559_0_0'  (string)
  info.vendor = 'TOSHIBA'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sde'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.firmware_version = '100'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = false  (bool)
  storage.model = 'USB 3.5"-HDD'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_930_b09_000DE559_if0'  (string)
  storage.partitioning_scheme = 'mbr'  (string)
  storage.removable = false  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 1000204886016  (0xe8e0db6000)  (uint64)
  storage.requires_eject = false  (bool)
  storage.serial = 'TOSHIBA_USB_3.5"-HDD_000DE559-0:0'  (string)
  storage.size = 1000204886016  (0xe8e0db6000)  (uint64)
  storage.vendor = 'TOSHIBA'  (string)

udi = '/org/freedesktop/Hal/devices/volume_uuid_0C0D_1111'
  block.device = '/dev/sde1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 65  (0x41)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_USB_3_5__HDD_000DE559_0_0'  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_USB_3_5__HDD_000DE559_0_0'  (string)
  info.product = 'USB-HDD'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_0C0D_1111'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sde/sde1'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (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_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = ''  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'vfat'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = 'FAT32'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = 'USB-HDD'  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush'} (string list)
  volume.mount_point = ''  (string)
  volume.num_blocks = 1953520002  (0x74705982)  (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 1000204886016  (0xe8e0db6000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 1000202241024  (0xe8e0b30400)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = '0C0D-1111'  (string)

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=nl_NL, LC_CTYPE=nl_NL (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages hal depends on:
ii  adduser           3.110                  add and remove users and groups
ii  dbus              1.2.1-4                simple interprocess messaging syst
ii  hal-info          20080508+git20080601-1 Hardware Abstraction Layer - fdi f
ii  libc6             2.7-16                 GNU C Library: Shared libraries
ii  libdbus-1-3       1.2.1-4                simple interprocess messaging syst
ii  libdbus-glib-1-2  0.76-1                 simple interprocess messaging syst
ii  libexpat1         2.0.1-4                XML parsing C library - runtime li
ii  libgcc1           1:4.3.2-1              GCC support library
ii  libglib2.0-0      2.16.6-1               The GLib library of C routines
ii  libhal-storage1   0.5.11-6               Hardware Abstraction Layer - share
ii  libhal1           0.5.11-6               Hardware Abstraction Layer - share
ii  libsmbios2        2.0.3.dfsg-1           Provide access to (SM)BIOS informa
ii  libstdc++6        4.3.2-1                The GNU Standard C++ Library v3
ii  libusb-0.1-4      2:0.1.12-13            userspace USB programming library
ii  libvolume-id0     0.125-7                libvolume_id shared library
ii  lsb-base          3.2-20                 Linux Standard Base 3.2 init scrip
ii  mount             2.13.1.1-1             Tools for mounting and manipulatin
ii  pciutils          1:3.0.0-6              Linux PCI Utilities
ii  pm-utils          1.1.2.4-1              utilities and scripts for power ma
ii  udev              0.125-7                /dev/ and hotplug management daemo
ii  usbutils          0.73-10                Linux USB utilities

Versions of packages hal recommends:
ii  eject                       2.1.5+deb1-4 ejects CDs and operates CD-Changer
pn  libsmbios-bin               <none>       (no description available)

Versions of packages hal suggests:
pn  gnome-device-manager          <none>     (no description available)

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list