summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2009-01-03usb_id: use devtype lookupKay Sievers
2009-01-03libudev: device - remove udev_device_get_parent_with_subsystemMarcel Holtmann
2008-12-29usb_id: add "image" classKay Sievers
2008-12-22rule_generator: fix enumeration for write_cd_rulesHarald Hoyer
quote +, as it would be taken as a part of the regexp otherwise https://bugzilla.redhat.com/show_bug.cgi?id=477535
2008-12-19rules: first simple step merging with Ubuntu rulesKay Sievers
2008-12-18path_id: rework SAS persistent namesJeremy Higdon
2008-12-09volume_id: support sub-uuid's and plug in btrfs device uuidKay Sievers
2008-12-09volume_id: btrfs - update formatKay Sievers
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-04rules: add persistent /dev/serial/{by-id,by-path} rulesKay Sievers
$ tree /dev/serial/ /dev/serial/ |-- by-id | |-- usb-067b_2303-if00-port0 -> ../../ttyUSB0 | |-- usb-FTDI_FT232R_USB_UART_A7005uBP-if00-port0 -> ../../ttyUSB3 | |-- usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0 -> ../../ttyUSB1 | `-- usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0 -> ../../ttyUSB2 `-- by-path |-- pci-0000:00:1d.0-usb-0:1:1.0-port0 -> ../../ttyUSB3 |-- pci-0000:00:1d.7-usb-0:2.2.2:1.0-port0 -> ../../ttyUSB0 |-- pci-0000:00:1d.7-usb-0:2.3:1.0-port0 -> ../../ttyUSB1 `-- pci-0000:00:1d.7-usb-0:2.3:1.1-port0 -> ../../ttyUSB2 $ tree /dev/serial/ /dev/serial/ |-- by-id | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port0 -> ../../ttyUSB0 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port1 -> ../../ttyUSB1 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port2 -> ../../ttyUSB2 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port3 -> ../../ttyUSB3 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port0 -> ../../ttyUSB8 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port1 -> ../../ttyUSB9 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port2 -> ../../ttyUSB10 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port3 -> ../../ttyUSB11 | `-- usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 -> ../../ttyUSB7 `-- by-path |-- pci-0000:00:1d.2-usb-0:1.3:1.0-port0 -> ../../ttyUSB7 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port0 -> ../../ttyUSB4 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port1 -> ../../ttyUSB5 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port2 -> ../../ttyUSB6 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port0 -> ../../ttyUSB0 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port1 -> ../../ttyUSB1 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port2 -> ../../ttyUSB2 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port3 -> ../../ttyUSB3 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port0 -> ../../ttyUSB8 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port1 -> ../../ttyUSB9 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port2 -> ../../ttyUSB10 `-- pci-0000:00:1d.7-usb-0:6.3:1.0-port3 -> ../../ttyUSB11
2008-12-03volume_id: HPFS code clean upKarel Zak
* fix typo (hs vs. hbb) * set id->{version,usage,type} when all tests pass * be paranoid and don't use hs->version when "hs" source buffer was possibly modified by next volume_id_get_buffer() call. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-12-02scsi_id: do not fail if no serial is found like for optical drivesKay Sievers
2008-11-26usb_id: add "break" to currently unused case labelsKay Sievers
2008-11-26usb_id: fix switch statement for video typeMarcel Holtmann
Introducing the video type, creating a fall-through case where other devices might now be declared as type video.
2008-11-23floppy: use ARRAY_SIZE()Kay Sievers
2008-11-23floppy: fix array bounds check and minor calculationPeter Breitenlohner
Fix off-by-4 bug in floppy minors for fd[4-7]. Avoid segmentation fault for bad CMOS type. Print mode in human readable, i.e., octal form.
2008-11-22update NEWS TODOKay Sievers
2008-11-21path_id: fix fibre channel handlingKay Sievers
2008-11-21man: fix typosPeter Breitenlohner
2008-11-21volume_id: clear probing result before probing and do not probe a second ↵Kay Sievers
time, if not needed On Thu, Nov 20, 2008 at 14:17, Karel Zak <kzak@redhat.com> wrote: > I see the patch (volume_id_probe_filesystem()) and a few things come > to mind: > > - shouldn't be the relevant parts (label, uuid, version, ...) of > the "struct volume_id" zeroized when you found a signature and > before you call the next probing function? > > - it seems as overkill to use two for()s and probe two times for all > filesystems. What about to store the first result and re-use it? > > - .. or at least never use the second for() when the fist for() found > nothing ;-)
2008-11-21volume_id: update btrfsKay Sievers
2008-11-21vol_id: if regular files are probed, use stat() for the size valueKay Sievers
2008-11-21volume_id: remove unused usage typesKay Sievers
2008-11-20scsi_id: make sure, we do not have slashes in valuesKay Sievers
2008-11-20ata_id: make sure, we do not have slashes in valuesKay Sievers
2008-11-20usb_id: replace chars in returned stringsKay Sievers
Slashes are not funny in device names: |-- input | |-- by-id | | `-- usb-Logitech_USB-PS | | |-- 2_Optical_Mouse-event-mouse -> ../../event2 | | `-- 2_Optical_Mouse-mouse -> ../../mouse1
2008-11-20rules: v4l - add by-id/ links for USB devicesKay Sievers
/dev/v4l |-- by-id | |-- usb-046d_09a4_C4B15020-video-index0 -> ../../video0 | `-- usb-05a9_a511-video-index0 -> ../../video1 `-- by-path |-- pci-0000:00:1d.0-usb-0:1:1.0-video-index0 -> ../../video1 `-- pci-0000:00:1d.7-usb-0:2:1.0-video-index0 -> ../../video0
2008-11-18volume_id: update btrfs magicKay Sievers
2008-11-14vol_id: clarify error messageKay Sievers
2008-11-13volume_id: ntfs - mark as no other fs must matchKay Sievers
2008-11-13fix spelling in commentKay Sievers
2008-11-13volume_id: fat - accept empty FAT32 fsinfo signatureKay Sievers
2008-11-13volume_id: always check for all filesystem types and skip conflicting resultsKay Sievers
We probe for all known filesystems to find conflicting signatures. If we find multiple matching signatures and one of the detected filesystem types claims that it can not co-exist with any other filesystem type, we do not return a probing result. We can not afford to mount a volume with the wrong filesystem code and possibly corrupt it. Linux ssytems have the problem of dozens of possible filesystem types, and volumes with left-over signatures from former filesystem types. Invalid signature need to be removed from the volume to make the filesystem detection successful. We do not want to read that many bytes from probed floppies, skip volumes smaller than a usual floppy disk.
2008-11-13volume_id: fat - move check for msdos signature (0x55 0xaa)Karel Zak
Make the msdos signature (0x55 0xaa) at 510 and 511 optional when the standard FAT magic string is present.
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-11-05usb_id: MassStorage SubClass 6 is "scsi" not "disk"Kay Sievers
2008-11-05volume_id: btrfs updateKay Sievers
2008-11-04firmware.sh: record missing files in /dev/.udev/firmware-missing/Kay Sievers
2008-10-30fstab_import: add "change" event matchKay Sievers
2008-10-30edd_id: add "change" event matchKay Sievers
2008-10-26do not init string arrays, just clear first byteKay Sievers
2008-10-24fix uninitialized variable warningsKay Sievers
2008-10-23rule_generator: fix netif NAME= value extraction regexKay Sievers
$ sed -n -r \ -e 's/^#.*//' \ -e 's/[[:space:],]NAME="(eth[0-9]*)"[[:space:]]*(,.*|\\|)$/\1/p' \ /dev/null /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:41:e2:8d:c7", ATTR{type}=="1", KERNEL=="eth*",eth4 $ sed -n -r \ -e 's/^#.*//' \ -e 's/.*[[:space:],]NAME="(eth[0-9]*)".*/\1/p' \ /dev/null /etc/udev/rules.d/70-persistent-net.rules eth4
2008-10-22add util_resolve_subsys_kernel()Kay Sievers
2008-10-22volume_id: swap - larger PAGE_SIZE supportMatthias Koenig
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-21use more appropriate alternatives to malloc()Alan Jenkins
Use calloc to request cleared memory instead. Kernel and libc conspire to make this more efficient. Also, replace one malloc() + strcpy() with strdup(). Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21cdrom_id: remove ARRAY_SIZE() declarationKay Sievers
2008-10-20libudev: device - get_attr_value() -> get_sysattr_value()Kay Sievers