summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-19rules: remove support for IDE (hd*) devicesKay Sievers
The kernel IDE drivers get deprecated now: http://article.gmane.org/gmane.linux.ide/43151 Almost everybody has switched over to libata devices long ago. Recent services do not work with the now deprecated IDE drivers at all and require libata drivers and SCSI infrastructure. Systems who care about the old stuff need to add the rules to the compat rules.
2009-11-16udev-test.pl: catch-up with recent changesKay Sievers
2009-11-16test-udev: remove "ignore_device" codeKay Sievers
2009-11-16print warning for BUS=, SYSFS{}=, ID=Kay Sievers
2009-11-16remove "ignore_device"Kay Sievers
There is no way to ignore an event these days. Libudev events can not be suppressed. It only prevents RUN keys from being executed, which results in an inconsistent behavior in current setups.
2009-11-12modem-modeswitch: add a deviceHarald Hoyer
2009-11-12rules: set mode of floppy device nodes to 0660Kay Sievers
2009-11-10cdrom_id: Still check profiles even if there is no mediaDavid Zeuthen
Even when there is no medium in the drive, we should still check the profiles supported by the drive. Otherwise we fail to detect things like Blu-ray drives. See https://bugzilla.gnome.org/show_bug.cgi?id=600273 for more information. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-10release 147Kay Sievers
2009-11-10Revert "gudev: fix out-of-tree build"Kay Sievers
This reverts commit b15b08913800c4a2fad6530becca55b896f66984. This breaks "make distcheck". The header is distributed in the tarball, and does not live in builddir.
2009-11-10update NEWSKay Sievers
2009-11-10gudev: fix out-of-tree buildMarco d'Itri
2009-11-10gudev: fix pkg-config call to work with "make distcheck"Kay Sievers
2009-11-09Revert "sound: include ALSA sound card id in /dev/snd/by-id/ links"Lennart Poettering
This reverts commit 68bffc607f7f0414fee77fa481d9c133ce0798e9. After discussing this with Kay we decided to drop this again as by-id links only make sense for devices that have a unique serial id. If they don't any attempts to make them unique have the side effect of nourishing assumptions by users that cannot be met, as the by-id device link of a device could differ depending on the history of simultaneously plugged in device. So, to make sure that all device nodes follow the same rules for by-id/ symlinks, drop this patch again.
2009-11-09gudev: Remove LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE from priv headerDavid Zeuthen
Since libudev is no longer unstable either. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-09sound: include ALSA sound card id in /dev/snd/by-id/ linksLennart Poettering
If two USB sound cards that have the same serial number are plugged in make sure the by-id/ device node symlink is unique at least during runtime, by including the ALSA card id in the symlink name. This is a followup to ed1b2d9fc7.
2009-11-08gudev: Fix up GUdevDeviceNumberDavid Zeuthen
Actually dev_t is an unsigned quad type (e.g. 64-bit even on 32-bit x86) so defining it to be an integer is wrong and not future proof. Thus, redefine it to actually be a dev_t (as originally wanted) and instead add a work-around for GNOME bug #584517, see https://bugzilla.gnome.org/show_bug.cgi?id=584517 for details. This way, GObject Introspection will still work. This change is technically an API/ABI break but - all released GUdev versions requires the user to understand that the API/ABI is unstable by requiring the G_UDEV_API_IS_SUBJECT_TO_CHANGE symbols to be defined - functions using GUdevDeviceNumber are rarely used so we don't bump the so number. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-06modem-modeswitch: fix ZTE MF6xx ruleMartin Pitt
https://launchpad.net/bugs/281335
2009-11-05sound: include ALSA sound card id in ID_ID propertyLennart Poettering
If two USB sound cards that have the same serial number are plugged in make sure ID_ID is unique at least during runtime, by including the ALSA card id in the ID_ID string. Fixes issues like this one: http://pulseaudio.org/ticket/661
2009-11-04udevd: create /dev/.udev/rules.d/ before watching it wit inotifyKay Sievers
This should also address: On Tue, Nov 3, 2009 at 16:21, Marco d'Itri <md@linux.it> wrote: > udev_rules_new() in udev/udev-rules.c unconditionally creates the > directory. > This is a problem because the function is called also by e.g. udevadm > test, and creating /dev/.udev/ when it does not exist is an unacceptable > side effect which will break everything else that checks for its > existence to know if udev is running.
2009-11-04ata_id: export more advanced ATA featuresDavid Zeuthen
2009-11-03fix major fd leak in link handlingMartin Pitt
link_find_prioritized(): Properly close directory handles to fix a major fd leak which caused hotplugging to fail entirely in many cases due to having too many open files. https://launchpad.net/bugs/463347
2009-11-02extras/keymap/README.keymap.txt: Fix bug report linkMartin Pitt
udev-extras is gone, ask people to file bugs against udev.
2009-10-31unblock signals we might want to handleKay Sievers
On Thu, Oct 29, 2009 at 19:15, Christian P. Schmidt <schmidt@digadd.de> wrote: > After the getty replaces itself with login the pam module pam_mount > calls mount. This in turn determines that the partition to be mounted is > LUKS encrypted, and calls cryptsetup. Cryptsetup receives the password, > unlocks the partition, and calls udevadm settle in order to avoid some > problems in interaction with LVM. > > udevadm settle never returns. > > The problem here is that SIGUSR1 and SIGALRM are both blocked in oldmask > already, and never reach udevadm. No care is ever taken to ensure those > signals are not blocked.
2009-10-30udevd: queue-export - remove retry loopAlan Jenkins
These retry loops are required where create_path() could race with delete_path(). But only the main udevd process writes to the queue, so no races will happen here. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-10-30use CLOEXEC flags instead of fcntl()Kay Sievers
2009-10-30Makefile.am: fix build with mawkMartin Pitt
Don't use the [[:space:]] syntax in awk calls' regex, since that's GNU awk specific. Thanks to Alan Jenkins for finding this.
2009-10-29gudev: remove G_UDEV_API_IS_SUBJECT_TO_CHANGE since API is now stableDavid Zeuthen
Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-10-29keymap: add HP 2230sMartin Pitt
Taken from hal-info commit e6389d9fa. http://bugs.freedesktop.org/show_bug.cgi?id=21527
2009-10-29keymap: add HP Pavillion dv6315eaMartin Pitt
Taken from hal-info commit eba65779.
2009-10-28remove "last_rule" optionKay Sievers
Its use breaks too many things which expect to be run from independent later rules, and is an idication that something needs to be fixed properly instead.
2009-10-28break loops if util_create_path() returns errorKay Sievers
Dangling symlinks in path components return -ENOENT. Do not retry to create the file in a loop in such case.
2009-10-21rules: Gentoo updateMatthias Schwarzott
2009-10-20libudev: allow to store negative values in the udev databasePeter Rajnoha
2009-10-15keymap: Add Logitech Wave cordlessMartin Pitt
https://launchpad.net/bugs/215035
2009-10-11keymap: make USB keyboards really workMartin Pitt
Calling usb_id and GOTO in one rule did not make sense at all.
2009-10-11keymap: fix usb_id invocationMartin Pitt
For deciding whether to call usb_id, test the property which we are actually querying further down. https://launchpad.net/215035
2009-10-08keymap: add missing map fileMartin Pitt
This fixes commit a05cd7ea3e582c9bf9680492e73687ea56cdd864
2009-10-08keymap: Add Logitech Wave USBMartin Pitt
This introduces a new rules section for USB keyboards, too. https://launchpad.net/bugs/215035
2009-10-08udevd: serialize events for with the same major/minorKay Sievers
On Wed, Oct 7, 2009 at 21:46, Alan Jenkins <sourcejedi.lkml@googlemail.com> wrote: > Udev would have avoided the race prior to > > 82c785e "udevd: remove check for dev_t, DEVPATH_OLD takes care of that" > > (the "check" removed here used to serialize events based on the device > major:minor number). On Wed, Oct 7, 2009 at 22:31, Michael Guntsche <mike@it-loops.com> wrote: > add /module/8250_pnp (module) > remove /devices/platform/serial8250/tty/ttyS0 (tty) > add /devices/pnp0/00:05/tty/ttyS0 (tty)
2009-10-07keymap for Acer Aspire 5720Maxim Levitsky
2009-10-0550-udev-default.rules: fix printer MODEMartin Pitt
Prefix with a 0 to be consistent with other rules. https://launchpad.net/bugs/438114
2009-09-30make raw USB printer devices world-readable againMartin Pitt
Commit f61e72d8 made raw USB printers accessible for the lp group. However, chmoding them to 0660 is a bit over-zealous, since by default raw USB devices are world-readable. Not being so breaks lsusb unnecessarily. Now set permissions to 0664.
2009-09-27udev-acl: catch up with ConsoleKit 0.4.1William Jon McCann
2009-09-24gudev: gir-scanner workaround for out of tree buildsMarco d'Itri
Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=562885
2009-09-24fix wrong parameter size on ioctl FIONREADAndrew Church
On Wed, Sep 23, 2009 at 23:11, Matthias Schwarzott <zzam@gentoo.org> wrote: > It is about ioctl failures on amd64: > http://bugs.gentoo.org/show_bug.cgi?id=286041 > > A bad parameter type to an ioctl() call causes udev-146 to generate "error > getting buffer for inotify" messages in syslog. The offending code is > roughly: > > ssize_t nbytes, pos; > // ... > ioctl(fd, FIONREAD, &nbytes); > > where ssize_t is 64 bits on amd64, but the kernel code for FIONREAD (at least > through gentoo-sources-2.6.31) uses type int: > > p = (void __user *) arg; > switch (cmd) { > case FIONREAD: > // ... > ret = put_user(send_len, (int __user *) p); > > so the upper 32 bits of "nbytes" are left uninitialized, and the subsequent > malloc(nbytes) fails unless those 32 bits happen to be zero (or the system has > a LOT of memory).
2009-09-22util_run_program: *really* restore signal mask before executing event RUN ↵Scott James Remnant
commands The previous patch was almost, but not quite, correct. Rather than restoring the signal mask it actually tried to make an even more restrictive signal mask (had SIGALRM been blocked when udevd started, anyway). Fix it harder. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2009-09-20fix previous commit for CD detectionMartin Pitt
Do not run blkid twice. *brown paperbag*
2009-09-20fix single-session CD detectionMartin Pitt
ID_CDROM_MEDIA_SESSION_LAST_OFFSET is not set for CDs with only a single session (i. e. for the vast majority of CDs out there). The previous rules ran blkid with invalid arguments for these, causing CD detection to fail in DK-disks and gvfs. Now check whether we actually have ID_CDROM_MEDIA_SESSION_LAST_OFFSET, and if not, call blkid without -O for specifying the offset. Many thanks to Maxim Levitsky for tracking this down! https://launchpad.net/bugs/431055
2009-09-19rules: Gentoo updateMatthias Schwarzott