[9294] in linux-scsi channel archive
Re: finding target id of a scsi device
daemon@ATHENA.MIT.EDU (Kurt Garloff)
Fri Aug 4 10:35:06 2000
Date: Fri, 4 Aug 2000 16:18:19 +0200
From: Kurt Garloff <garloff@suse.de>
To: Douglas Gilbert <dgilbert@interlog.com>
Cc: BenHanokh Gabriel <gabriel@SANgate.com>,
"linux-scsi@vger.rutgers.edu" <linux-scsi@vger.rutgers.edu>
Message-ID: <20000804161819.I17824@garloff.etpnet.phys.tue.nl>
Mail-Followup-To: Kurt Garloff <garloff@suse.de>,
Douglas Gilbert <dgilbert@interlog.com>,
BenHanokh Gabriel <gabriel@SANgate.com>,
"linux-scsi@vger.rutgers.edu" <linux-scsi@vger.rutgers.edu>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
protocol="application/pgp-signature"; boundary="3ecMC0kzqsE2ddMN"
Content-Disposition: inline
In-Reply-To: <398A1DF0.F1E887A@interlog.com>; from dgilbert@interlog.com on Thu, Aug 03, 2000 at 09:35:44PM -0400
--3ecMC0kzqsE2ddMN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Aug 03, 2000 at 09:35:44PM -0400, Doug Gilbert wrote:
> BenHanokh Gabriel wrote:
> > is there a way in user-space to map from the dev_t ( retrive from
> > stat(2) ) to the scsi target & logical ids?
> > if no can i do it in kernel-space ?
>=20
> With an open file descriptor to a SCSI device the
> SCSI_IOCTL_GET_IDLUN ioctl() can be used.=20
Or,=20
you may use scsidev to create device nodes which carry the information in
the name.
http://www.garloff.de/kurt/linux/scsidev/
ftp://ftp.suse.de/pub/people/garloff/linux/scsidev/
Regards,
--=20
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
--3ecMC0kzqsE2ddMN
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1e-SuSE (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org
iD8DBQE5itCrxmLh6hyYd04RAvFYAJ49wNYzR1pjK0M0VvFe+/A2PybRQACfcEIy
49JOnftzLfzZx8v8y0fpYdE=
=q8uY
-----END PGP SIGNATURE-----
--3ecMC0kzqsE2ddMN--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu