All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] SCSI device/adapter/bus address correlation?
Date: 02 Sep 2004 19:36:15 -0400	[thread overview]
Message-ID: <1094168177.2097.154.camel@mulgrave> (raw)
In-Reply-To: <200409021719.15267.bjorn.helgaas@hp.com>

On Thu, 2004-09-02 at 19:19, Bjorn Helgaas wrote:
> Not being a real SCSI person, I'm sure there's some clever way I'm
> supposed to figure out which disk is /dev/sda.  But sometimes it's
> not clear from the kernel boot messages, particularly for drivers
> that don't print the PCI address of the adapter.

You do it like this:

jejb@gsyprf11> ls -l /sys/block/sda/device
lrwxrwxrwx  1 root root 0 Aug 22 10:57 /sys/block/sda/device ->
../../devices/parisc0/parisc0:0/pci0000:00/0000:00:01.1/host1/1:0:15:0/

There you see the full attachment tree of the pci device.

> Is there any interest in a patch like the attached, which makes
> things look like this:

Not really, unless it's part of a conversion to dev_printk().

James



  reply	other threads:[~2004-09-02 23:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 23:19 [PATCH] SCSI device/adapter/bus address correlation? Bjorn Helgaas
2004-09-02 23:36 ` James Bottomley [this message]
2004-09-02 23:58   ` Christoph Hellwig
2004-09-03 14:44   ` Bjorn Helgaas
2004-09-03 14:49     ` Olaf Hering
2004-09-03 18:09     ` Patrick Mansfield
2004-09-03 20:13       ` Bjorn Helgaas
2004-09-03 21:42         ` Olaf Hering
     [not found] <20040903204400.26701.76199.Mailman@linux.us.dell.com>
2004-09-03 20:57 ` Matt Domsch

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=1094168177.2097.154.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=bjorn.helgaas@hp.com \
    --cc=linux-scsi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.