Double 'block' link for floppy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm seeing an oddity with floppy:

$ vdir /sys/devices/platform/floppy.0/
total 0
lrwxrwxrwx    1 root     root            0 May 21 22:43 block -> ../../../block/fd1
lrwxrwxrwx    1 root     root            0 May 21 22:43 block -> ../../../block/fd1
lrwxrwxrwx    1 root     root            0 May 21 22:43 bus -> ../../../bus/platform
-rw-r--r--    1 root     root         4096 May 21 22:43 detach_state

I suspect the first is actually supposed to be 'fd0' since:

$ vdir /sys/block/fd*/device
lrwxrwxrwx    1 root     root            0 May 21 22:52 /sys/block/fd0/device -> ../../devices/platform/floppy.0
lrwxrwxrwx    1 root     root            0 May 21 22:52 /sys/block/fd1/device -> ../../devices/platform/floppy.0

It seems that the block sysfs layer can't cope with one device having
multiple block devices hanging off it, which is the case with floppy
controllers.

Maybe a possible solution would be for the floppy driver to register
platform devices beneath the main device for each floppy drive?

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux