summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2009-07-06scsi_id: correct error handling in prepend_vendor_modelIan Campbell
The callers of prepend_vendor_model both expect < 0 to be returned on error and the index to be returned otherwise. However prepend_vendor_model actually returns 1 on error. Fix this by correctly returning -1. Older kernels (before e5b3cd42: "SCSI: sanitize INQUIRY strings") truncated the model field in sysfs (or propagated bad results from the target) to less than the expected/required 16 characters which meant that the SCSI id was mangled into: # /sbin/scsi_id -g -s /block/sdg S146cee20VIRTUAL-DISK when it should have been: # /sbin/scsi_id -g -s /block/sdg SIET VIRTUAL-DISK 146cee20 Notice how the serial number has been pasted over the vendor+model at index 1 instead of being added at the end. In the former case: # cat /sys/devices/platform/host5/session1/target5:0:0/5:0:0:1/model | od -t c -t x1 0000000 V I R T U A L - D I S K \n 56 49 52 54 55 41 4c 2d 44 49 53 4b 0a But it should have been: # cat /sys/devices/platform/host5/session1/target5:0:0/5:0:0:1/model | od -t c -t x1 0000000 V I R T U A L - D I S K 56 49 52 54 55 41 4c 2d 44 49 53 4b 20 20 20 20 0000020 \n 0a Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
2009-07-04build: do not delete .la filesKay Sievers
2009-07-03extras/udev-acl: add smartcard readersMartin Pitt
gnupg, psc-lite, etc. will ship udev rules for supported smartcard readers soon. Add the ACL management bit. Thanks to Michael Bienia!
2009-07-01firmware: search for third party or sysadmin supplied firmware updatesJon Masters
We currently search /lib/firmware and /lib/firmware/`uname -r` for firmware files for device drivers loaded by the currently running kernel. These are often packaged by distributions as a subpackage of the kernel or as a separate package containing firmware. But these files cannot easily be updated by third parties or sysadmins independently of that package. This patch causes udev to also look for firmware files in an "updates" directory, which is almost identical in purpose to the module-init-tools "updates" directories insomuch as local changes can go in here and will take preference over firmware supplied by any distribution.
2009-06-28scsi_id: delete no longer needed config fileKay Sievers
2009-06-28ata_id: sync ID_SERIAL(_SHORT) with other *_id toolsKay Sievers
ID_SERIAL is the full serial number used for the links, ID_SERIAL_SHORT is the device serial number.
2009-06-28scsi_id: --reformat_serial - use udev_util_replace_whitespace()Kay Sievers
2009-06-26hid2hci: narrow matches to real HCI devicesMartin Pitt
The previous rules just checked bInterfaceProtocol but not the actual device and interface class. This caused the hci rules to be applied for Dell USB hubs and attached input devices like keyboards and mouses as well, breaking them completely. Tighten the match to also check device and interface class/subclass. https://launchpad.net/bugs/392144
2009-06-20configure.ac: add AM_SILENT_RULESKay Sievers
2009-06-19extras/keymap: Update findkeyboards locationMartin Pitt
Recent commit 3b338b6 moved findkeyboards from /usr/share/udev to /lib/udev/. Update documentation accordingly.
2009-06-19udev-acl: Manage hplip device permissionsMartin Pitt
hplip tools need user access to the devices for checking ink levels and user-level configuration. This was formerly done with hal FDIs. As per discussion with Till Kamppeter.
2009-06-19extras/keymap: install findkeyboards in /lib/udevKay Sievers
2009-06-17extras: delete man pages for private udev toolsKay Sievers
These are mostly dummy man pages, without real content, some even outdated. None of these tools are part of any offered public interface, and they should not pretend to be by offering a man page.
2009-06-17keymap: Update findkeyboard path in docsMartin Pitt
findkeyboards is now in /usr/share/udev/ after the migration to udev proper. Update path in README.keymap.txt.
2009-06-17extras/keymap: use LIBEXECDIR instead /lib/udevKay Sievers
2009-06-17extras/modem-modeswitch: move from udev-extrasDan Williams
2009-06-17extras/keymap: Fix WLAN button on ThinkPadsMartin Pitt
Fn+F5 was previously assigned to "radio" which is fairly useless under X. Switch it to "wlan". Reported in http://bugs.debian.org/504643
2009-06-17keymap: move from udev-extrasMartin Pitt
2009-06-17cleanup ./configure installation directory optionsKay Sievers
2009-06-16usb-db: move from udev-extrasLennart Poettering
2009-06-16v4l_id: 70-v4l.rules -> 60-persistent-v4l.rulesKay Sievers
2009-06-16gudev: fix typo in configure optionKay Sievers
2009-06-16hid2hci: move from udev-extrasMario Limonciello
2009-06-16v4l_id: move from udev-extrasKay Sievers
2009-06-16udev-acl: handle missing action when called in CK modeKay Sievers
2009-06-16gudev: move from udev-extrasDavid Zeuthen
GObject libudev access. Initial version from Bastien Nocera, current version by David Zeuthen.
2009-06-16udev-acl: move from udev-extrasKay Sievers
The build of extras with larger external dependencies is wrapped in: --enable-extras
2009-06-14USE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUXKay Sievers
2009-06-09move common stuff from udev/ to private parts of libudev/Kay Sievers
2009-06-09move syslog wrapper to libudevKay Sievers
2009-06-08libudev: move to top-level directoryKay Sievers
2009-06-08path_id: rename scsi sub-fuctionsKay Sievers
2009-06-08path_id: delete old shell scriptKay Sievers
Removed with this is SAS disk support which never really worked properly, and legacy IDE disk support, which can be re-implemented if needed.
2009-06-08path_id: add iscsi supportKay Sievers
2009-06-08path_id: handle fibre channelKay Sievers
2009-06-06fix signed/unsigned warningKay Sievers
2009-06-06path_id: add commentsKay Sievers
2009-06-06path_id: update SCSI handlingKay Sievers
2009-06-06path_id: implement in C using libudevKay Sievers
2009-05-29cdrom_id: add error message if open() failsKay Sievers
2009-05-26cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM mediaKay Sievers
Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank. $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [Nokia ][S60 ][1.0 ] cd_profiles: GET CONFIGURATION: number of profiles 76 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 12 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=blank Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media: $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02] cd_profiles: GET CONFIGURATION: number of profiles 72 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 20 cd_media_toc: track=1 info=0x4(data) start_block=0 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=complete ID_CDROM_MEDIA_SESSION_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
2009-05-20edd_id: use openat()Kay Sievers
2009-05-20use more efficient string copyingKay Sievers
2009-05-14rule-generator: cd - skip by-path links if we create by-id linksKay Sievers
2009-05-12delete libvolume_idKay Sievers
2009-05-11delete vol_id and require util-linux-ng's blkidKay Sievers
2009-05-03rule-generator: net - whitelist NICs that violate MAC local schemeLubomir Rintel
According to list of assigned ethernet codes [1] referred to by IANA [2] certain global addresses do not follow the assignement scheme and use numbers reserved for local use. Several such adapters are quite widely used, generate rules for them. [1] http://www.cavebear.com/archive/cavebear/Ethernet/vendor.html [2] http://www.iana.org/assignments/ethernet-numbers
2009-04-26rule_generator: net - fix usb comment generationKay Sievers
On Sat, Apr 4, 2009 at 22:17, Omair Eshkenazi <stimpson@phys.huji.ac.il> wrote: > I noticed that in (70-)persistent-net.rules, the comments for USB devices > are missing the device/vendor id's. Example: > # USB device 0x:0x (rt73usb)
2009-04-23cdrom_id: skip media tests if CDROM_DRIVE_STATUS != CDS_DISC_OKKay Sievers
2009-04-22edd_id: add cciss devicesJohn Wright
Since cciss devices can be BIOS boot devices just as well as sd* and hd*, the edd_id program should be run on them so that the later /dev/disk/by-id/edd-* rules will work.