summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-11-18update NEWSKay Sievers
2008-11-17fix $links substitution for devices without any linkKay Sievers
Reported-by: Michel Hermier <michel.hermier@gmail.com>
2008-11-17udevd: fix cleanup of /dev/.udev/uevent_seqnumKay Sievers
2008-11-17limit $attr(<symlink>) magic to well-known links onlyKay Sievers
2008-11-15udevadm: fix option parsing breakage with klibcSergey Vlasov
The klibc implementation of getopt_long() behaves slightly different from the glibc one - in particular, it treats the change of the option string argument between invocations as start of parsing a different command line, and resets its state. However, the udevadm code expected getopt_long() invocations in subcommands to continue parsing the rest of command line after initial options has been parsed at the top level; with klibc this broke, causing all udevadm subcommands to stop recognizing their options. Instead of relying on the glibc behavior, reset the getopt_long() state properly before invoking the subcommand handler: move argv to point to the subcommand name, decrease argc appropriately, and set optind = 0. This also fixes a minor bug visible with glibc - without setting optind = 0 all getopt_long() calls in subcommand handlers were behaving as if "+" was specified as the first character of the option string (which disables option reordering), because that state was set by the first getopt_long() call at the top level, and was not reset when parsing subcommand options. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
2008-11-14libudev: device - handle disk "device" link for partitions in deprecated ↵Kay Sievers
sysfs layout Thanks to Mikhail Kolesnik <mike@openbunker.org> for finding this.
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: bump revisionKay Sievers
2008-11-13remove len == 0 check, the index root is always '\0'Kay Sievers
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-13configure: add linux-hotplug mail addressKay Sievers
2008-11-13update NEWSKay Sievers
2008-11-13rules: remove pnp shell script, acpi loads these modules properlyKay Sievers
2008-11-13rules: remove DEVTYPE disk/partitionKay Sievers
2008-11-13udevadm: info - unify -V and --versionKay Sievers
2008-11-13set errno = ENOSYS in inotify stubKay 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-13merge trie nodes, childs and root into a single arrayKay Sievers
2008-11-12reserve child slot 0Kay Sievers
2008-11-12string index - split nodes and childs to allow and unlimited number of childsKay Sievers
2008-11-11silence "comparison between signed and unsigned"Kay Sievers
2008-11-11udevd: de-duplicate strings in rulesAlan Jenkins
On my Ubuntu installation this removes 15k of duplicate strings, using a temporary index of about 25k. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-11-07release 132Kay Sievers
2008-11-07convert debug string arrays to functionsKay Sievers
On Fri, Nov 7, 2008 at 13:07, Matthias Schwarzott <zzam@gentoo.org> wrote: > I managed to let udev-131 segfault at startup. > > I configured it like this: > CFLAGS="-Wall -ggdb" ./configure --prefix=/usr --sysconfdir=/etc --exec-prefix= > > Running it in gdb shows it segfaults at udev-rules.c:831 > > (gdb) run > Starting program: /tmp/udev-131/udev/udevd > > Program received signal SIGSEGV, Segmentation fault. > 0x0804ea06 in get_key (udev=0x9175008, line=0xafcdc8f0, key=0xafcdc5d8, > op=0xafcdc5d0, value=0xafcdc5d4) > at udev-rules.c:831 > 831 dbg(udev, "%s '%s'-'%s'\n", operation_str[*op], *key, *value); If compiled without optimization, the dbg() macro dereferences variables which are not available. Convert the string array to a function, which just returns NULL if compiled without DEBUG.
2008-11-07fix size_t compiler warning on 32 bit platformsKay Sievers
2008-11-07release 131Kay Sievers
2008-11-06udevadm: settle - exit if udevd exitsKay Sievers
2008-11-06cleanup /dev/.udev/queue on startup and exitKay Sievers
2008-11-06rules: md - add mdadm 3 device namingKay Sievers
2008-11-06fix indentationKay Sievers
2008-11-05udevd: shrink struct token to 12 bytesAlan Jenkins
2008-11-05$links should be relativeKay Sievers
2008-11-05unify string replacementKay Sievers
2008-11-05usb_id: MassStorage SubClass 6 is "scsi" not "disk"Kay Sievers
2008-11-05do not import the "uevent" file when we only read the db to get old symlinksKay Sievers
2008-11-05fix cleanup of possible left-over symlinksKay Sievers
2008-11-05fix $links substitutionKay Sievers
2008-11-05info() PROGRAM and IMPORT executionKay Sievers
2008-11-05volume_id: btrfs updateKay Sievers
2008-11-04fix list handling in enumerate and rules file sortingKay Sievers
2008-11-04firmware.sh: record missing files in /dev/.udev/firmware-missing/Kay Sievers
2008-11-01move debugging strings inside #ifdef DEBUGKay Sievers
2008-11-01add "devel" and "install" switches to autogen.shKay Sievers
2008-11-01move some info() to dbg()Kay Sievers
2008-11-01fix udev_node_update_old_links() logicKay Sievers
No need to check if links that still belong to us, need to be updated.
2008-11-01skip entire rule containing device naming keys, if no device can be namedKay Sievers
If rules set NAME, SYMLINK, OWNER, GROUP, MODE, events without a device node and remove events will skip the entire rule. The old parser did the same.