summaryrefslogtreecommitdiff
path: root/extras/scsi_id
AgeCommit message (Collapse)Author
2009-06-09move syslog wrapper to libudevKay Sievers
2009-06-08libudev: move to top-level directoryKay Sievers
2009-05-20use more efficient string copyingKay Sievers
2009-02-17*_id: add model/vendor enc stringsDavid Zeuthen
So ID_MODEL and ID_VENDOR are pretty useful keys. However since we fix them up (removing leading/trailing whitespace, converts spaces to underscores) for use in device naming etc. we also force these fixups on the desktop shell. And this looks pretty ugly. The attached patch introduces the ID_MODEL_ENC and ID_VENDOR_ENC keys that contains the encoded version of the raw strings obtained. It's pretty similar in spirit to ID_FS_LABEL and its cousin ID_FS_LABEL_ENC. With this patch a desktop shell can fix up these strings as it sees fit. Note that some fixup is still needed though, for example # /lib/udev/ata_id --export /dev/sda |grep ID_MODEL ID_MODEL=INTEL_SSDSA2MH080G1GC ID_MODEL_ENC=INTEL\x20SSDSA2MH080G1GC\x20\x20\x20\x20\x20\x20\x20\x20 \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 Note the trailing and leading whitespace. Anyway with the attached patch the desktop shell should be able to display "INTEL SSDSA2MH080G1GC" rather than "INTEL_SSDSA2MH080G1GC" to the user.
2008-12-06make: do not delete autotools generated file with distcleanKay Sievers
[...] running the command `make maintainer-clean' should not delete `configure' even if `configure' can be remade using a rule in the Makefile. More generally, `make maintainer-clean' should not delete anything that needs to exist in order to run `configure' and then begin to build the program. This is the only exception; `maintainer-clean' should delete everything else that can be rebuilt.
2008-12-02scsi_id: do not fail if no serial is found like for optical drivesKay Sievers
2008-11-21man: fix typosPeter Breitenlohner
2008-11-20scsi_id: make sure, we do not have slashes in valuesKay Sievers
2008-11-13scsi_id: we don't use DEVPATH env var anymore, update man pageAlan Jenkins
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-11-05unify string replacementKay Sievers
2008-10-26do not init string arrays, just clear first byteKay Sievers
2008-10-21replace strncpy() with strlcpy()Alan Jenkins
The problem was strncpy() doesn't stop after writing the terminating NUL; by definition it goes on to zero the entire buffer. I spy another use of strncpy in udev_device_add_property_from_string(), which is responsible for another ~1% user cpu time... Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-16libudev: add global property listKay Sievers
2008-10-02libudev: get rid of selinuxKay Sievers
"Hello world!" linked against libselinux parses /proc/mounts and whatever else on startup, even when the lib is not needed at all. Not funny! Get rid of that thing where it's not absolutely needed.
2008-10-02use no_argument, required_argument, optional_argument in longoptsKay Sievers
2008-09-29fix dbg() callersKay Sievers
2008-09-19always include config.h from MakefileKay Sievers
2008-09-19scsi_id: compiler warning on 32-bitAlan Jenkins
The sg_io_v4 interface passes pointers as u64s. It turns out GCC disapproves of us casting a u64 straight to a 32 bit pointer. cc1: warnings being treated as errors scsi_serial.c: In function ‘sg_err_category4’: scsi_serial.c:159: warning: cast to pointer from integer of different size scsi_serial.c: In function ‘scsi_dump_v4’: scsi_serial.c:303: warning: cast to pointer from integer of different size
2008-09-10extras: use libudev codeKay Sievers
2008-09-10libudev: rename libudev-utils.c libudev-util.cKay Sievers
2008-09-10libudev: get rid of udev_utils.cKay Sievers
2008-09-10libudev: get rid of udev_sysfs.cKay Sievers
2008-09-10libudev: add selinuxKay Sievers
2008-09-06use libudev code, unify logging, pass udev context around everywhereKay Sievers
2008-07-30use autotoolsKay Sievers
2008-07-30delete all Makefiles and move udev source to udev/Kay Sievers
2008-07-10scsi_id: the fallback fix broke error handlingKay Sievers
2008-07-10scsi_id: man page fixMarco d'Itri
minus signs need to be escaped and the program is not in the $PATH anymore
2008-07-10scsi_id: include sys/stat.hThomas Koeller
I could not build scsi_id because of a missing #include for sys/stat.h, so I had to add that. Signed-off-by: Thomas Koeller <thomas@koeller.dyndns.org>
2008-07-07scsi_id: fix fallback to sg v3 for sg nodesKay Sievers
2008-06-11scsi_id: retry open() on -EBUSYHarald Hoyer
2008-05-16scsi_id: add bsg.hKay Sievers
2008-05-14scsi_id: add --sg-version= optionKay Sievers
2008-05-14scsi_id: remove bus_id optionKay Sievers
2008-05-14scsi_id: update man pageKay Sievers
2008-05-14scsi_id: add SGv4 supportHannes Reinecke
Fall back to SGv3, if SGv3 returns a failure/is not available.
2008-05-14scsi_id: remove all sysfs dependenciesHannes Reinecke
2008-05-14man: scsi_idMUNEDA Takahiro
2008-04-20scsi_id: initialize serial stringsKay Sievers
2008-04-20logging: add trailing newline to all stringsKay Sievers
2008-03-15Makefile: do not require GNU installRoy Marples
2007-11-08extras: ignore built and generated filesDan Nicholson
2007-05-29scsi_id: fix typo in help textKay Sievers
2007-05-25scsi_id: add long optionsKay Sievers
2007-05-25cciss device supportHannes Reinecke
2007-05-21scsi_id: do not install symlink in /sbinKay Sievers
2007-02-25scsi_id: accept tabs in /etc/scsi_id.confKay Sievers
2007-01-28man: fix typos in scsi_id and udevdA. Costa
2007-01-21correct typo in extras/scsi_id/scsi_id.confMatthias Schwarzott
2007-01-21fix INSTALL_PROGRAM vs. INSTALL_SCRIPTPeter Breitenlohner