From: Christoph Hellwig <hch@infradead.org>
To: Danny Leong <danny@trek2000.com.sg>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Advice on getting the scsi device name.
Date: Fri, 4 Jun 2004 09:09:35 +0100 [thread overview]
Message-ID: <20040604080935.GA28278@infradead.org> (raw)
In-Reply-To: <1086317300.1023.9.camel@localhost.localdomain>
On Fri, Jun 04, 2004 at 10:48:16AM +0800, Danny Leong wrote:
> Hi,
>
> I am writing a program that needs to safely and correctly identify and
> mount a dev/sda ... dev/sda1 or dev/sdb etc.As far my knowledge fits me,
> i have to manually check the entry on proc/scsi/scsi to determine.
> Please advice me on a better method that could be included in a C
> program. Any help is greatly appreciated.
You can't. mknod is done from userspace and the kernel can't gurantee
you the name.
next prev parent reply other threads:[~2004-06-04 8:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-04 2:48 Advice on getting the scsi device name Danny Leong
2004-06-04 8:09 ` Christoph Hellwig [this message]
2004-06-04 17:20 ` Bryan Henderson
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=20040604080935.GA28278@infradead.org \
--to=hch@infradead.org \
--cc=danny@trek2000.com.sg \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox