Storage probing problem
Andrey Borzenkov
arvidjaar at mail.ru
Wed Sep 27 08:56:43 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 27 September 2006 14:23, S.Çağlar Onur wrote:
> Hi;
>
> For some of our users partitions are not probed by hal, so KDE can't find
> these and mount/unmount etc. are not working properly with hal-0.5.8.1 on
> Pardus. A sample bug report info reported to us is followed.
>
> I can't find why these partitions are seems parentless and ignored. Any
> idea or suggestion?
>
> # fdisk -l
>
> Disk /dev/hda: 60.0 GB, 60011642880 bytes
> 255 heads, 63 sectors/track, 7296 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 1 1275 10241406 7 HPFS/NTFS
> /dev/hda2 1276 7295 48355650 f W95 Ext'd (LBA)
> /dev/hda5 * 1276 2295 8193118+ 83 Linux
> /dev/hda6 2296 2422 1020096 82 Linux swap /
> Solaris /dev/hda7 2423 3442 8193118+ 83 Linux
> /dev/hda8 3443 4172 5863693+ 83 Linux
> /dev/hda9 4173 7295 25085466 83 Linux
>
>
> 12:58:25.991 [I] hald.c:118: Started addon hald-addon-storage for
> udi /org/freedesktop/Hal/devices/storage_serial_Y34E302152
> 12:58:25.991 [I] hotplug.c:174: /sys/block/hda is a block device
> (subsystem) 12:58:25.992 [I] blockdev.c:637: block_add:
> sysfs_path=/sys/block/hda dev=/dev/hda is_part=0, parent=0x080a4580
> 12:58:25.992 [I] blockdev.c:951: parent_bus is ide
> 12:58:25.993 [I] blockdev.c:467: Probing storage device /dev/hda
> Run started hald-probe-storage (10000) (0)
> ! full path is '/usr/libexec/hald-probe-storage', program_dir
> is '/usr/libexec'
> [4267]: 12:58:25.998 [D] probe-storage.c:153: Doing probe-storage for
> /dev/hda (bus ide) (drive_type disk)
> (udi=/org/freedesktop/Hal/devices/temp/103) (--only-check-for-fs==0)
> [4267]: 12:58:26.006 [D] probe-storage.c:365: Checking for file system
> on /dev/hda
> [4267]: 12:58:26.006 [D] probe-storage.c:371: Doing open ("/dev/hda",
> O_RDONLY)
> [4267]: 12:58:26.007 [D] probe-storage.c:379: Returned from open(2)
> [4267]: 12:58:26.007 [D] probe-storage.c:395: look for existing partitions
> for hda
> [4267]: 12:58:26.007 [D] probe-storage.c:405: partition hda9 found, skip
> probing for filesystem
> [4267]: 12:58:26.007 [I] partutil.c:431: No MSDOS_MAGIC found
> [4267]: 12:58:26.007 [I] partutil.c:858: MSDOS partition table detected
> Warning: Error while wite r->input () to stdin_v.
> /usr/libexec/hald-probe-storage exited
> 12:58:26.008 [I] hald_dbus.c:3968: Client to local_server was disconnected
> 12:58:26.009 [I] hald_dbus.c:4005: unregistered
> 12:58:26.009 [I] hald_dbus.c:4017: 4226: Got a connection
> 12:58:26.009 [I] hald_dbus.c:4018: dbus_connection_get_is_connected = 1
> 12:58:26.009 [I] hald_dbus.c:4017: 4226: Got a connection
> 12:58:26.010 [I] hald_dbus.c:4018: dbus_connection_get_is_connected = 1
> 12:58:26.010 [I] blockdev.c:352: entering; exit_type=2, return_code=0
> 12:58:26.010 [I] hotplug.c:174: /sys/block/hda/hda9 is a block device
> (subsystem)
> 12:58:26.011 [E] util.c:170: Cannot open '/sys/block/hda/hda9/range'
> 12:58:26.011 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda9
> dev=/dev/hda9 is_part=1, parent=0x00000000
> 12:58:26.011 [I] blockdev.c:739: Ignoring hotplug event - no parent
this looks the same problem we hit recently on Mandriva
(https://bugs.freedesktop.org/show_bug.cgi?id=8210). In summary - object gets
moved in GDL only after all callouts have finished, but event processing
continues in the meantime. In our case hal daemon died because it could not
find object parent that should be computer itself; but this one was waiting
in TDL yet. In this case we obviously has the same case -
hal_util_find_known_parent() looks in GDL but (according to log) not all
callouts have finished yet (at least, HAL did not process this event yet) so
hda is not found and hotplug_event_begin_add_blockdev() quits.
- -andrey
> 12:58:26.013 [W] blockdev.c:1151: Not adding device object
> 12:58:26.013 [I] hotplug.c:174: /sys/block/hda/hda8 is a block device
> (subsystem)
> 12:58:26.013 [E] util.c:170: Cannot open '/sys/block/hda/hda8/range'
> 12:58:26.014 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda8
> dev=/dev/hda8 is_part=1, parent=0x00000000
> 12:58:26.014 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.014 [W] blockdev.c:1151: Not adding device object
> 12:58:26.015 [I] hotplug.c:174: /sys/block/hda/hda7 is a block device
> (subsystem)
> 12:58:26.015 [E] util.c:170: Cannot open '/sys/block/hda/hda7/range'
> 12:58:26.015 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda7
> dev=/dev/hda7 is_part=1, parent=0x00000000
> 12:58:26.016 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.016 [W] blockdev.c:1151: Not adding device object
> 12:58:26.016 [I] hotplug.c:174: /sys/block/hda/hda6 is a block device
> (subsystem)
> 12:58:26.017 [E] util.c:170: Cannot open '/sys/block/hda/hda6/range'
> 12:58:26.017 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda6
> dev=/dev/hda6 is_part=1, parent=0x00000000
> 12:58:26.017 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.017 [W] blockdev.c:1151: Not adding device object
> 12:58:26.018 [I] hotplug.c:174: /sys/block/hda/hda5 is a block device
> (subsystem)
> 12:58:26.018 [E] util.c:170: Cannot open '/sys/block/hda/hda5/range'
> 12:58:26.019 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda5
> dev=/dev/hda5 is_part=1, parent=0x00000000
> 12:58:26.019 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.019 [W] blockdev.c:1151: Not adding device object
> 12:58:26.021 [I] hotplug.c:174: /sys/block/hda/hda2 is a block device
> (subsystem)
> 12:58:26.021 [E] util.c:170: Cannot open '/sys/block/hda/hda2/range'
> 12:58:26.021 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda2
> dev=/dev/hda2 is_part=1, parent=0x00000000
> 12:58:26.022 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.022 [W] blockdev.c:1151: Not adding device object
> 12:58:26.022 [I] hotplug.c:174: /sys/block/hda/hda1 is a block device
> (subsystem)
> 12:58:26.023 [E] util.c:170: Cannot open '/sys/block/hda/hda1/range'
> 12:58:26.023 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/hda/hda1
> dev=/dev/hda1 is_part=1, parent=0x00000000
> 12:58:26.023 [I] blockdev.c:739: Ignoring hotplug event - no parent
> 12:58:26.024 [W] blockdev.c:1151: Not adding device object
>
>
> Cheers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFGp88R6LMutpd94wRAl1UAKClI9qKbeEhr/XAVyuIr9mFO4H8AACgvJuT
LClsL1cjQfUwQuhJhQc6mLU=
=8PkG
-----END PGP SIGNATURE-----
More information about the hal
mailing list