From: Stefan Voelkel <Stefan.Voelkel@millenux.com>
To: linux-scsi@vger.kernel.org
Subject: bus:id:lun to device name
Date: 02 Jul 2003 17:24:08 +0200 [thread overview]
Message-ID: <1057159447.825.68.camel@lt-sv> (raw)
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
Hi,
I want to convert a bus:id:lun triple to something like "/dev/sda".
From userspace I can ioctl() /dev/s[d|cd|...]* or parse /proc/scsi/scsi.
I do not like any of those solutions.
Since a kernel module is already involved, I was wondering if it
can/may/should be done from kernelspace. As of 2.4.21 some data
structures from the middle layer are exported, but with a "debug only"
comment.
regards
Stefan
--
--------------------------------------------------------------------
Stefan Völkel stefan.voelkel@millenux.com
Millenux GmbH mobile: +49.170.79177.17
Lilienthalstraße 2 phone: +49.711.88770.300
70825 Stuttgart-Korntal fax: +49.711.88770.349
-= linux without limits -=- http://linux.zSeries.org/ =-
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2003-07-02 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 15:24 Stefan Voelkel [this message]
2003-07-08 14:50 ` bus:id:lun to device name Kurt Garloff
2003-07-15 14:45 ` Stefan Voelkel
2003-07-15 17:03 ` Bryan Henderson
2003-07-16 8:29 ` Stefan Voelkel
2003-07-17 10:29 ` Christoph Hellwig
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=1057159447.825.68.camel@lt-sv \
--to=stefan.voelkel@millenux.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.