Linux ATA/IDE development
 help / color / mirror / Atom feed
* ide subsystem does not create "driver" symlinks in sysfs
@ 2005-03-05 14:36 Kay Sievers
  0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2005-03-05 14:36 UTC (permalink / raw)
  To: linux-ide

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-05 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-05 14:36 ide subsystem does not create "driver" symlinks in sysfs Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox