Skip to contentSkip to conversation

ide subsystem does not create "driver" symlinks in sysfs

DISCUSSION Kay Sievers 1 participant 1 message Mar 5, 2005 libata

lore
Share & tools
lore
#0 lore raw

The ide layer does not create the expected "driver" link at the physical device in sysfs.

Here is the block device:
[root@pim ~]# ls -l /sys/block/hda

  -r--r--r--   1 root root 4096 Mar  4 21:25 dev
  lrwxrwxrwx   1 root root    0 Mar  4 21:25 device -> ../../devices/pci0000:00/0000:00:1f.1/ide0/0.0

The physical device misses the "driver" link:
[root@pim ~]# ls -l '/sys/devices/pci0000:00/0000:00:1f.1/ide0/0.0'

  lrwxrwxrwx  1 root root    0 Mar  5 14:35 block -> ../../../../../block/hda
  lrwxrwxrwx  1 root root    0 Mar  4 21:25 bus -> ../../../../../bus/ide

Also the entries below the drivers directory are missing in /sys/bus:
[root@pim ~]# tree /sys/bus/ide/
/sys/bus/ide

  |-- devices
  |   |-- 0.0 -> ../../../devices/pci0000:00/0000:00:1f.1/ide0/0.0
  |   `-- 1.0 -> ../../../devices/pci0000:00/0000:00:1f.1/ide1/1.0
  `-- drivers
      |-- ide-cdrom
      `-- ide-disk

Here is the example of a scsi block device, which looks as expected:
[root@pim ~]# tree /sys/bus/scsi
/sys/bus/scsi
|-- devices
| `-- 2:0:0:0 -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host2/target2:0:0/2:0:0:0
`-- drivers

      `-- sd
          `-- 2:0:0:0 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host2/target2:0:0/2:0:0:0

It would be nice, if this can be fixed, as userspace like udev and HAL expects these values to show up.

Thanks,
Kay