bug: hal doesn't always detect my partition on sd card

Frederic Crozat fcrozat at mandriva.com
Fri May 16 01:02:18 PDT 2008


Le vendredi 16 mai 2008 à 01:37 +0200, Daniel Winter a écrit :
> Hello,
> 
> i have a problem with hal here.
> 
> It doesn't always detect the volumes on my sd card after insertion. It shows 
> the sd card itself in lshal but not the volume.   But udev/kernel does create 
> the /dev node for the partition. 
> 
> In about 1 of 5 tries it works. 
> 
> OS: Archlinux
> Hal-Version: 0.5.11rc2
> Kernel-Version: 2.6.24-ARCH 
> udev-version: 119
> 
> Output from 
> hald --daemon=no --verbose=yes when inserting the card (and it gets not 
> recognised):
> 
> [13596]: 01:13:21.001 [I] addon-storage.c:355: Checking whether device 
> /dev/sr0 is locked on HAL
> [13596]: 01:13:21.002 [I] addon-storage.c:363: ... device /dev/sr0 is not 
> locked on HAL
> 01:13:21.611 [I] device.c:1894: Removing locks from ':1.5'
> 01:14:13.726 [I] osspec.c:241: SEQNUM=2765, ACTION=add, SUBSYSTEM=block, 
> DEVPATH=/sys/block/mmcblk0, DEVNAME=/dev/mmcblk0, IFINDEX=0
> 01:14:13.726 [I] osspec.c:966: hal_util_find_known_parent: 
> '/sys/block/mmcblk0'-
> >'/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0'
> 01:14:13.726 [I] blockdev.c:874: block_add: sysfs_path=/sys/block/mmcblk0 
> dev=/dev/mmcblk0 is_part=0, parent=0x080c8c00
> 01:14:13.726 [I] blockdev.c:1245: parent_bus is NULL - wrong parent?
> 01:14:13.726 [W] blockdev.c:1473: Not adding device object
> 01:14:13.727 [I] osspec.c:241: SEQNUM=2767, ACTION=add, SUBSYSTEM=mmc, 
> DEVPATH=/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624, 
> DEVNAME=, IFINDEX=0
> 01:14:13.727 [I] hotplug.c:138: 
> /sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624 is a 
> device (subsystem)
> 01:14:13.727 [I] osspec.c:966: hal_util_find_known_parent: 
> '/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624'-
> >'/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0'
> 01:14:13.727 [I] device.c:4306: add_dev: subsys=mmc 
> sysfs_path=/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624 
> dev= parent_dev=0x080c8c00
> 01:14:13.732 [I] device.c:4154: Add callouts completed 
> udi=/org/freedesktop/Hal/devices/pci_1180_822_mmc_host_mmc_card_rca58916
> 01:14:13.732 [D] device_store.c:516: adding 0x8115dc0 to 
> (linux.sysfs_path,/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624)
> 01:14:13.732 [I] hald.c:108: Added device to GDL; 
> udi=/org/freedesktop/Hal/devices/pci_1180_822_mmc_host_mmc_card_rca58916
> 01:14:13.770 [I] osspec.c:241: SEQNUM=2766, ACTION=add, SUBSYSTEM=block, 
> DEVPATH=/sys/block/mmcblk0/mmcblk0p1, DEVNAME=/dev/mmcblk0p1, IFINDEX=0
> 01:14:13.770 [I] blockdev.c:874: block_add: 
> sysfs_path=/sys/block/mmcblk0/mmcblk0p1 dev=/dev/mmcblk0p1 is_part=1, 
> parent=0x00000000
> 01:14:13.770 [I] blockdev.c:970: Ignoring hotplug event - no parent
> 01:14:13.770 [W] blockdev.c:1473: Not adding device object
> [13596]: 01:14:15.000 [I] addon-storage.c:355: Checking whether device 
> /dev/sr0 is locked on HAL
> [13596]: 01:14:15.001 [I] addon-storage.c:363: ... device /dev/sr0 is not 
> locked on HAL
> 01:14:57.127 [I] device.c:1894: Removing locks from ':1.45'
> 
> If you need anything else please write me (please CC me, as I am not on the 
> list)

Already reported on bugzilla :
https://bugs.freedesktop.org/show_bug.cgi?id=15011

-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva



More information about the hal mailing list