From: Patrick Mansfield <patmans@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: [announce] scsi_id release 0.2
Date: Fri, 05 Dec 2003 23:18:10 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107066635628064@msgid-missing> (raw)
Version 0.2 of scsi_id is available at:
http://www-124.ibm.com/storageio/scsi_id/scsi_id-0.2.tar.gz
scsi_id is a program to generate a SCSI unique identifier for a given SCSI
device.
It is primarily for use with udev callout config entries. It can also be
used for automatic multi-path configuration or device mapper
configuration.
Requires:
- Linux kernel 2.6
- libsysfs 0.3.0
To use with udev, in short:
Run scsi_id to dump determine the id, for example, for sda, run:
/sbin/scsi_id -s /block/sda
Take the resulting value (including white space) and use it as the ID in a
udev CALLOUT entry, an example /etc/udev/udev.rules entry for one of
my disk drives:
CALLOUT, BUS="scsi", PROGRAM="/sbin/scsi_id", ID="200609487340c78ac", NAME="diskf1"
Major changes since the last release:
- builds under udev and klibc (I'll post udev/Makefile changes I
needed to get the build to work), does not build properly for
udev without klibc because of sysfsutils include paths issue
- fix a bug with config file options parsing not allocating space
- added a man page
Full list of changes:
* Add a man page.
* Set and use variables that might be passed down when
built under udev (with or without klibc), don't set LDFLAGS or
STRIP.
* scsi_id.c, scsi_id.h: Fix a bad bug - when parsing file options,
no space was allocated for the creation of the new argv[]
strings.
* scsi_id.c: Catch too long a line in the config file.
* scsi_id.h: Add u8 typedef to avoid ummm scsi.h kernel header
problem when built with klibc.
* scsi_id.h: Add define of makedev() if built with klibc.
* scsi_id.c: reset optind to 1 since klibc does not work if it is
reset to zero.
* scsi_id.c: remove fflush() as it is not needed, and is not
supported by klibc.
* scsi_serial.c: Make the functions do_scsi_page0_inquiry and
do_scsi_page80_inquiry static.
* scsi_id.c: Don't use syslog LOG_PID, as it is not supported by
klibc.
* scsi_id.c, scsi_serial.c: Hack - change include path to libsysfs
if built under klibc.
* Makefile: Use "override" for CFLAGS so we can pass CFLAGS values
down when built with udev
* scsi_id.c, Makefile: Use SCSI_ID_VERSION instead of VERSION.
* scsi_id.c: Remove getopt_long (long option names), as there
is no support for that in klibc.
* scsi_id.c: Patch from Brian King <brking@us.ibm.com>: check
result of setting model, not vendor in per_dev_options.
* scsi_id.c, scsi_serial.c: Use new and correct path to libsysfs.h.
* scsi_id.h: Fix scsi_id.h so var args in macros works ok with
older gcc.
Please email me any questions, comments or patches.
Thanks!
-- Patrick Mansfield
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2003-12-05 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 23:18 Patrick Mansfield [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-07 15:38 [announce] scsi_id release 0.2 Olaf Hering
2003-12-07 19:42 ` Patrick Mansfield
2003-12-07 19:59 ` Olaf Hering
2003-12-07 20:38 ` Patrick Mansfield
2003-12-12 14:27 ` Rask Ingemann Lambertsen
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=marc-linux-hotplug-107066635628064@msgid-missing \
--to=patmans@us.ibm.com \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).