On 16.08.2010 14:40, Denys Vlasenko wrote:
Is that by design or am I missing something here? I have added mdev to the
kernel hotplug mechanism by doing that (of course):
echo /sbin/mdev>/proc/sys/kernel/hotplug
You need to debug the problem. Does mdev get called when you create
/dev/sda1 via fdisk?
Yes, when I delete a partition, mdev gets called 4 times with the
following parameters:
block
block
block
block
When I create a new partition, output is the same, but still,
it doesn't add the device file to /dev (i.e. sda2), when I run `mdev -s`
right after the fdisk command, the device files get created.
Thanks to your debugging script, I found out something else
I always wondered about.
When I plugin a USB memory stick, mdev gets called 8 times
in a row with the following parameters:
usb
usb
scsi_host
scsi
scsi_disk
scsi_device
block
bdi
But `cat /proc/partitions` doesn't show the new device (should be sdb
and sdb1 according to the output of `dmesg`), also, running `mdev -s`
manually doesn't help in this situation.
When I unplug the USB memory stick, mdev gets called 8 times in
a row with the following parameters:
scsi_device
scsi_disk
bdi
block
scsi
scsi_host
usb
usb
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox