Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-ide@vger.kernel.org
Subject: ide subsystem does not create "driver" symlinks in sysfs
Date: Sat, 05 Mar 2005 15:36:55 +0100	[thread overview]
Message-ID: <1110033415.7532.18.camel@localhost.localdomain> (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


                 reply	other threads:[~2005-03-05 14:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1110033415.7532.18.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox