strange interaction with partprobe and HAL 0.5.5.1
John Galloway
jrg at dbengines.com
Thu Jul 6 11:25:25 PDT 2006
On Jul 6, 2006, at 4:37 AM, Kay Sievers wrote:
> On Wed, 2006-07-05 at 13:23 -0700, John Galloway wrote:
>> This is an old version, but was wondering if anyone has
>> run into this. If I run partprobe against a device HAL
>> emits alternating device removed and device added events
>> for it. i.e. the odd times (first, 3rd, ...) I get device
>> added and the even times (2nd, 4th, ..) I get a device
>> removed, for the same device. once in a while I get
>> both. i.e. this seems badly broken. Does this ring any
>> bells with anyone?
>
> Partprobe triggers a partititon table scan, which instructs the kernel
> to remove and re-add all partitin block devices. HAL will also remove
> and add the device object with this action.
Right, I expected that (i.e. a remove followed by an add) but that is
not what I see. Each successive run of partprobe only does one
or the other in 99% of the cases.
>
> You can watch the kernel events with "udevmonitor" while running the
> partiton table scan.
Thanks, I didn't know about that one.
-jrg
More information about the hal
mailing list