Systemd/extras/scsi_id
dsteklof@us.ibm.com ff3633bf9d [PATCH] fix scsi_id segfault with udev-009
Scsi_id hasn't been changed to use the latest libsysfs changes. The
"directory" in the sysfs_class_device is now considered "private" and only
should be accessed using functions. Treating the structures as handles lets
us only load information when it's needed, reducing caching or stale
information and also helping performance.

Here's the problem.

static inline char *sysfs_get_attr(struct sysfs_class_device *dev,
                                    const char *attr)
{
        return sysfs_get_value_from_attributes(dev->directory->attributes,
                                               attr);
}

Please try this quick fix:
2005-04-26 21:13:09 -07:00
..
ChangeLog
COPYING
Makefile
README
scsi.h
scsi_id.8
scsi_id.c [PATCH] fix scsi_id segfault with udev-009 2005-04-26 21:13:09 -07:00
scsi_id.config
scsi_id.h [PATCH] fix scsi_id segfault with udev-009 2005-04-26 21:13:09 -07:00
scsi_serial.c
TODO

scsi_id - generate a SCSI unique identifier for a given SCSI device

Primarily for use with udev callout config entries. This could also be
used by a multi-path configuration tool that requires SCSI id's.

Requires:

	- Linux kernel 2.6

	- libsysfs

No man page yet.

libsysfs 0_2_0 was not installing libsysfs.h or dlist.h, manually copy
those files to /usr/include/sys before compiling.

Build via make and make install.

Please send questions, comments or patches to patmans@us.ibm.com.