]> err.no Git - systemd/log
systemd
13 years agokeymap: Add Acer Aspire 8930
Jürgen Kaiser [Wed, 9 Feb 2011 16:10:32 +0000 (17:10 +0100)]
keymap: Add Acer Aspire 8930

http://bugs.debian.org/612512

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
13 years agoextras: qemu - fix typo
Kay Sievers [Tue, 25 Jan 2011 20:46:12 +0000 (21:46 +0100)]
extras: qemu - fix typo

13 years agomake: fix qemu rules file name
Kay Sievers [Tue, 25 Jan 2011 15:12:44 +0000 (16:12 +0100)]
make: fix qemu rules file name

13 years agoextras: add rules for qemu guests
Gerd Hoffmann [Tue, 25 Jan 2011 14:51:07 +0000 (15:51 +0100)]
extras: add rules for qemu guests

These patches enable usb autosuspend for the qemu emulated HID devices.
This reduces the cpu load for idle guests with a hid device attached
because the linux kernel will suspend the usb bus then and qemu can stop
running a 1000 Hz to emulate the (active) UHCI controller.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
13 years agokeymap: Explain how to end the program
Martin Pitt [Sun, 16 Jan 2011 20:12:32 +0000 (21:12 +0100)]
keymap: Explain how to end the program

Pressing Escape will only actually work if keymap is currently examining the
primary keyboard. For other devices the user needs to press Control-C instead.

13 years agokeymap: More robust state machine
Martin Pitt [Sun, 16 Jan 2011 20:10:03 +0000 (21:10 +0100)]
keymap: More robust state machine

Some drivers, like thinkpad_acpi, do not send a scan code at all (for known
keys), and some send the key code first, then the scan code. Implement a better
state machine which acceps them in any order and wait until a SYN event. If the
driver does not send SYN events, keymap will also handle this and print out
that fact.

Thanks to Seth Forshee for pointing out how this really works!

https://launchpad.net/bugs/702407

13 years agokeymap: Move reading of event in separate function
Martin Pitt [Sun, 16 Jan 2011 18:25:04 +0000 (19:25 +0100)]
keymap: Move reading of event in separate function

13 years agokeymap: Add Lenovo ThinkPad X201 tablet
Martin Pitt [Thu, 13 Jan 2011 16:10:27 +0000 (10:10 -0600)]
keymap: Add Lenovo ThinkPad X201 tablet

https://launchpad.net/bugs/702426

13 years agokeymap: Update README.keymap.txt
Martin Pitt [Fri, 7 Jan 2011 11:12:57 +0000 (12:12 +0100)]
keymap: Update README.keymap.txt

Drop orig-map.txt requirement, we don't really use it in practice. Also ask for
sending stuff to the mailing list instead of Launchpad.

13 years agokeymap: Add Acer TravelMate C310
Martin Pitt [Fri, 7 Jan 2011 11:09:45 +0000 (12:09 +0100)]
keymap: Add Acer TravelMate C310

Thanks to Dieter Herrmann for the report!

13 years agoman: fix typo
Kay Sievers [Tue, 4 Jan 2011 17:32:07 +0000 (18:32 +0100)]
man: fix typo

Found by: Minh Ha-Duong.

13 years agoRemap Eee PC touchpad toggle key to F21 used by X
Chris Bagwell [Sat, 1 Jan 2011 21:44:38 +0000 (15:44 -0600)]
Remap Eee PC touchpad toggle key to F21 used by X

Currently, Eee PC have a hotkey that generates KEY_F13 but this
will soon change to KEY_TOUCHPAD_TOOGLE.  Both cases do not
work well with X.

X has defined F21 for the purpose of touchpad toggle and other
udev keymaps align with this meaning.  Patch aligns Eee PC
hotkey drivers with F21.

Tested on Eee PC 1005PE using both eeepc-wmi and eeepc-laptop driver
(with acpi_osi="!Windows 2009").

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
13 years agoman: generate html pages for www.kernel.org
Kay Sievers [Sun, 26 Dec 2010 15:01:13 +0000 (16:01 +0100)]
man: generate html pages for www.kernel.org

  http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/

13 years agoversion bump
Kay Sievers [Thu, 16 Dec 2010 12:37:45 +0000 (13:37 +0100)]
version bump

13 years agorelease 165
Kay Sievers [Thu, 16 Dec 2010 12:17:02 +0000 (13:17 +0100)]
release 165

13 years agoupdate NEWS
Kay Sievers [Thu, 16 Dec 2010 09:12:22 +0000 (10:12 +0100)]
update NEWS

13 years agogudev: Add Device.get_usec_since_initialized
David Zeuthen [Wed, 15 Dec 2010 15:46:34 +0000 (10:46 -0500)]
gudev: Add Device.get_usec_since_initialized

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogudev: bump minor version
Kay Sievers [Wed, 15 Dec 2010 08:06:05 +0000 (09:06 +0100)]
gudev: bump minor version

13 years agolibudev: record and export "age" of device record
Kay Sievers [Wed, 15 Dec 2010 07:57:46 +0000 (08:57 +0100)]
libudev: record and export "age" of device record

13 years agolibudev: fix renamed device nodes detection logic
Kay Sievers [Tue, 14 Dec 2010 20:26:12 +0000 (21:26 +0100)]
libudev: fix renamed device nodes detection logic

13 years agoAdd g_udev_device_get_is_initialized() method
David Zeuthen [Tue, 14 Dec 2010 17:50:04 +0000 (12:50 -0500)]
Add g_udev_device_get_is_initialized() method

Also nuke the "Index of deprecated symbols" since we have no
deprecated symbols just yet.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd GUdevEnumerator type and Device.get_tags() method
David Zeuthen [Tue, 14 Dec 2010 17:37:40 +0000 (12:37 -0500)]
Add GUdevEnumerator type and Device.get_tags() method

Also add JS example to check the added API works.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agolibudev: enumerate - allow to filter-out not-already-initialized devices
Kay Sievers [Tue, 14 Dec 2010 13:18:32 +0000 (14:18 +0100)]
libudev: enumerate - allow to filter-out not-already-initialized devices

13 years agocheck ifindex > 0 instead of subsystem == "net"
Kay Sievers [Tue, 14 Dec 2010 10:27:02 +0000 (11:27 +0100)]
check ifindex > 0 instead of subsystem == "net"

13 years agoudevd: write full database file for (unsupported) renamed device nodes
Kay Sievers [Tue, 14 Dec 2010 01:30:36 +0000 (02:30 +0100)]
udevd: write full database file for (unsupported) renamed device nodes

13 years agoudevd: switch to common id_filename functions
Kay Sievers [Sun, 12 Dec 2010 19:07:15 +0000 (20:07 +0100)]
udevd: switch to common id_filename functions

13 years agoudevd: simplify udev database and fix DEVNAME handling
Kay Sievers [Sat, 11 Dec 2010 13:00:46 +0000 (14:00 +0100)]
udevd: simplify udev database and fix DEVNAME handling

13 years agoudevd: always create /dev/{char,block}/$major:$minor
Kay Sievers [Fri, 10 Dec 2010 12:27:03 +0000 (13:27 +0100)]
udevd: always create /dev/{char,block}/$major:$minor

13 years agoudevd: use dev_t or netif ifindex as database key
Kay Sievers [Fri, 10 Dec 2010 00:13:35 +0000 (01:13 +0100)]
udevd: use dev_t or netif ifindex as database key

We need to preserve the database of network interfaces while we
rename them. Use the kernel's numbers wherever possible, instead
of the device names.

Fix wrong database filenames which contain a '/', translated
from '!' in the kernel name.

Fix segfault for kobject pathes where the subsystem can not be
determined from sysfs.

13 years agoudevadm: info - honor --export, --export-prefix=
Kay Sievers [Thu, 9 Dec 2010 21:45:13 +0000 (22:45 +0100)]
udevadm: info - honor --export, --export-prefix=

13 years agoudevadm: info - honor --export and --export-prefix for property query
Kay Sievers [Thu, 9 Dec 2010 20:10:30 +0000 (21:10 +0100)]
udevadm: info - honor --export and --export-prefix for property query

The output will always be quoted:
  $ udevadm info --export --export-prefix=MY_ --query=property --name=sda
  MY_UDEV_LOG='3'
  MY_DEVPATH='/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda'
  MY_MAJOR='259'
  MY_MINOR='0'
  MY_DEVNAME='sda'
  MY_DEVTYPE='disk'
  MY_SUBSYSTEM='block'

13 years agolibudev: do not overwrite path with readlink() call
Kay Sievers [Thu, 9 Dec 2010 20:08:19 +0000 (21:08 +0100)]
libudev: do not overwrite path with readlink() call

13 years agokeymap: Fix struck Touchpad key on Dell Precision M series
Martin Pitt [Wed, 8 Dec 2010 17:41:42 +0000 (18:41 +0100)]
keymap: Fix struck Touchpad key on Dell Precision M series

https://launchpad.net/bugs/686662

13 years agokeymap: Fix struck Touchpad key on Dell Latitude E series
Martin Pitt [Wed, 8 Dec 2010 15:21:02 +0000 (16:21 +0100)]
keymap: Fix struck Touchpad key on Dell Latitude E series

https://launchpad.net/bugs/686662

14 years agorules: revert bsg use until the event ordering problem is sorted out
Kay Sievers [Tue, 30 Nov 2010 10:48:08 +0000 (11:48 +0100)]
rules: revert bsg use until the event ordering problem is sorted out

The bsg devices node are created after the LUN, so we fail in the
hotplug case, but succeed at coldplug, and create inconsistent data
that way.

The bsg device event order will need to be sorted out, by changing the
kernel.

14 years agorules: drop alsa jack-plug input devices
Kay Sievers [Mon, 29 Nov 2010 11:01:58 +0000 (12:01 +0100)]
rules: drop alsa jack-plug input devices

14 years agoAdd ACLs for FFADO supported sound cards
David Henningsson [Fri, 26 Nov 2010 14:31:42 +0000 (15:31 +0100)]
Add ACLs for FFADO supported sound cards

https://launchpad.net/bugs/681755

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agokeymap: Add release quirks for two Zepto Znote models and AMILO Xi 2428
Andy Whitcroft [Fri, 26 Nov 2010 13:08:28 +0000 (14:08 +0100)]
keymap: Add release quirks for two Zepto Znote models and AMILO Xi 2428

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agorules: drop OSS audio rule
Kay Sievers [Wed, 24 Nov 2010 11:05:21 +0000 (12:05 +0100)]
rules: drop OSS audio rule

14 years agorules: 78-sound-card - remove specific hardware matches, they do not belong here
Kay Sievers [Wed, 24 Nov 2010 11:00:31 +0000 (12:00 +0100)]
rules: 78-sound-card - remove specific hardware matches, they do not belong here

14 years agoudevd: create static nodes before /dev/null is needed
Michal Soltys [Mon, 22 Nov 2010 12:55:20 +0000 (13:55 +0100)]
udevd: create static nodes before /dev/null is needed

14 years agoAdd ACL for media player USB devices
Martin Pitt [Mon, 22 Nov 2010 09:49:12 +0000 (10:49 +0100)]
Add ACL for media player USB devices

Originally we added an ACL for some particular mobile phone product IDs to
enable users to run e. g. the Android SDK as non-root. This was removed in
232f180 as we don't want to maintain product/vendor ID lists in udev.

However, we already know from media-player-info that devices like this are
media players. There is little reason to deny user access to those, so add back
a generic rule which adds an ACL to media player raw USB devices.

https://launchpad.net/bugs/316215

14 years ago70-acl.rules: add ACLs for ID_PDA devices
Harald Hoyer [Fri, 12 Nov 2010 14:44:34 +0000 (15:44 +0100)]
70-acl.rules: add ACLs for ID_PDA devices

14 years agoudev-rules.c: change import property buffer to 16384 bytes
Harald Hoyer [Fri, 12 Nov 2010 13:39:14 +0000 (14:39 +0100)]
udev-rules.c: change import property buffer to 16384 bytes

import_program_into_properties() should have the same line length as
import_file_into_properties()

see also https://bugzilla.redhat.com/show_bug.cgi?id=652318

14 years agoman: udev - workaraound -> workaround
Jakub Wilk [Wed, 10 Nov 2010 00:29:50 +0000 (01:29 +0100)]
man: udev - workaraound -> workaround

14 years agoextras/keymap: Make touchpad buttons consistent
Bastien Nocera [Thu, 4 Nov 2010 23:58:56 +0000 (23:58 +0000)]
extras/keymap: Make touchpad buttons consistent

We'll need to standardise on the Touchpad related keys in udev, kernel, and
X.org. I selected F21 for XF86TouchpadToggle, F22 for XF86TouchpadOn and F23
for XF86TouchpadOff.

See:
https://bugs.freedesktop.org/show_bug.cgi?id=31333

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agokeymap: Add force release for HP touchpad off
Bastien Nocera [Mon, 1 Nov 2010 16:29:09 +0000 (16:29 +0000)]
keymap: Add force release for HP touchpad off

Force the touchpad off/on keys getting released, as they usually
only send a "repeat".

https://bugzilla.redhat.com/show_bug.cgi?id=623239

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agoUse ata_id, not scsi_id, on ATAPI devices
David Zeuthen [Thu, 4 Nov 2010 12:55:58 +0000 (08:55 -0400)]
Use ata_id, not scsi_id, on ATAPI devices

The major benefit here, is that we get the ATAPI device serial
number. With SCSI ID we didn't get this since it's not part of the
SCSI INQUIRY command. Specifically this means that we get symlinks to
empty optical drives, e.g.

 /dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376

which we didn't get earlier. So this is a major win.

Also make ata_id work on CD-ROM devices when using /dev/bsg nodes so
this works on both the scsi_device as well as the block device. We do
this, basically, by issuing the ATA IDENTIFY PACKET DEVICE command
instead of the ATA IDENTIFY command. We also use 16-byte pass-through
ATA passthrough instead of 12-byte passthrough to avoid clashing with
the MMC BLANK command.

This means that we get this output

 # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 E: UDEV_LOG=3
 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 E: DEVTYPE=scsi_device
 E: DRIVER=sr
 E: MODALIAS=scsi:t-0x05
 E: SUBSYSTEM=scsi
 E: ID_ATA=1
 E: ID_TYPE=cd
 E: ID_BUS=ata
 E: ID_MODEL=VBOX_CD-ROM
 E: ID_MODEL_ENC=VBOX\x20CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x 20\x20\x20\x20\x20\x20\x20
 E: ID_REVISION=1.0
 E: ID_SERIAL=VBOX_CD-ROM_VB2-01700376
 E: ID_SERIAL_SHORT=VB2-01700376

instead of just

 # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 E: UDEV_LOG=3
 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0
 E: DEVTYPE=scsi_device
 E: DRIVER=sr
 E: MODALIAS=scsi:t-0x05
 E: SUBSYSTEM=scsi
 E: ID_SCSI=1
 E: ID_VENDOR=VBOX
 E: ID_VENDOR_ENC=VBOX\x20\x20\x20\x20
 E: ID_MODEL=CD-ROM
 E: ID_MODEL_ENC=CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
 E: ID_REVISION=1.0
 E: ID_TYPE=cd

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoRun scsi_id and ata_id on the scsi_device object
David Zeuthen [Sat, 30 Oct 2010 16:30:19 +0000 (12:30 -0400)]
Run scsi_id and ata_id on the scsi_device object

In a multi-initiator setup, the HBA may very well export a SCSI device
for a device that another initiator has already logged into. But since
another initiator has already logged in, the kernel will not create a
block device.

Note that this is also the case for some RAID HBAs - for example, the
LSI 1068 series cards will export a SCSI device for a disk that is in
use by the HBAs RAID engine (no block device will be created here).

Running scsi_id and ata_id on the actual SCSI device means that we can
inquire the capabilities of the device. For example, we can check
whether ID_ATA_FEATURE_SET_SMART and ID_ATA_FEATURE_SET_SMART_ENABLED
is set and, if so, periodically poll the SMART status of the
disk. Even when other initiators has claimed the disk and if the disk
is in use by the RAID engine of the HBA.

Note that we run scsi_id and ata_id on /dev/bsg/* nodes - this is safe
to do because the scsi core guarantees that the bsg device has been
created before the actual add uevent for the scsi_device is emitted.

Since the block device is a direct child of the scsi_device we can
avoid running scsi_id and ata_id again by simply importing the
resulting ID_* properties from the parent.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoata_id: Support SG_IO version 4 interface
David Zeuthen [Sat, 30 Oct 2010 15:44:06 +0000 (11:44 -0400)]
ata_id: Support SG_IO version 4 interface

This makes it possible to use /dev/bsg/* nodes for ata_id:

 # /lib/udev/ata_id --export /dev/bsg/0\:0\:0\:0
 ID_ATA=1
 ID_TYPE=disk
 ID_BUS=ata
 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
 ID_REVISION=045C8802
 [...]

This means that our cd-rom detection as per commit

 http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=160b069c25690bfb0c785994c7c3710289179107

needs to be reworked since we can't just use the CDROM_GET_CAPABILITY
ioctl on a /dev/bsg node (which is a character device). We do this by
just sending the SCSI INQUIRY command and checking the type (CD-ROM's
are all type 0x05 and disks are type 0x00) before we issue the ATA
IDENTIFY command through the SCSI command ATA PASS_THROUGH (12).

 (Yes, it's a bit perverse how we have to tunnel our ATA commands
 through a SCSI command  but that's how Linux currently work.)

We still support for SG_IO version 3 (we fail back if version 4 fails
with EINVAL) because testing reveals that some drivers (such as
mpt2sas) still only support version 3 on the block nodes.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agocdrom_id: Fix media state for unreadable DVDs
Jan Drzewiecki [Tue, 26 Oct 2010 16:10:57 +0000 (12:10 -0400)]
cdrom_id: Fix media state for unreadable DVDs

If the disc is unreadable and reading of the first 32 blocks fails set the
cd_media status to 0 (not present). This will prevent udev from executing blkid
next that tries to determine fs on the disc and which in this case may seem to
hang forever locking the drive.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agokeymap: Add some more Sony Vaio VGN-* models
Martin Pitt [Tue, 26 Oct 2010 02:11:37 +0000 (22:11 -0400)]
keymap: Add some more Sony Vaio VGN-* models

https://launchpad.net/bugs/627890

14 years agokeymap: Add Sony Vaio VGN71
Martin Pitt [Tue, 26 Oct 2010 02:01:03 +0000 (22:01 -0400)]
keymap: Add Sony Vaio VGN71

https://launchpad.net/bugs/625770

14 years agoversion bump
Kay Sievers [Sat, 23 Oct 2010 13:35:35 +0000 (15:35 +0200)]
version bump

14 years agorelease 164
Kay Sievers [Sat, 23 Oct 2010 13:13:57 +0000 (15:13 +0200)]
release 164

14 years agolibudev: return kernel provided devnode when asked before we handled any rules
Kay Sievers [Fri, 22 Oct 2010 11:50:55 +0000 (13:50 +0200)]
libudev: return kernel provided devnode when asked before we handled any rules

14 years agokeymap: Add Toshiba Satellite U500
Martin Pitt [Fri, 22 Oct 2010 10:52:45 +0000 (12:52 +0200)]
keymap: Add Toshiba Satellite U500

https://launchpad.net/bugs/271706

14 years agoreturn proper error code in rename_netif()
Kay Sievers [Mon, 18 Oct 2010 10:50:20 +0000 (12:50 +0200)]
return proper error code in rename_netif()

<Md>  kay: can you look at rename_netif()? it returns -errno in a place,
      but I think that it may by changed by err() (at least)
<kay> Md: yeah, that doesn't look correct

14 years agokeymap: Apply force-release rules to all Samsung models.
Martin Pitt [Wed, 13 Oct 2010 16:08:41 +0000 (18:08 +0200)]
keymap: Apply force-release rules to all Samsung models.

The force-release list for Samsung is already an ultralong monster, and
reportedly still incomplete (see https://launchpad.net/bugs/574250).
Give up and instead apply the force-release quirk to all Samsung models. The
worst that can happen is that autorepeat behaves a bit weird, but that's much
better than a complete freeze after each keypress.

14 years agoudevd: do not wrongly delay events for devices with swapped names
Kay Sievers [Wed, 13 Oct 2010 11:03:27 +0000 (13:03 +0200)]
udevd: do not wrongly delay events for devices with swapped names

Renaming network devices might delay events for the other device, which has
the same devpath in the meantime as the original event. Causing a delay until
the timout of the event is reached.

Look at the ifindex/devnum of the devices to check if they are really
the same devices.

14 years agoversion bump
Kay Sievers [Thu, 7 Oct 2010 13:34:20 +0000 (15:34 +0200)]
version bump

14 years agoInstall libgudev-1.0.so in prefix / instead of prefix /usr
David Zeuthen [Mon, 11 Oct 2010 16:01:04 +0000 (12:01 -0400)]
Install libgudev-1.0.so in prefix / instead of prefix /usr

This is to match where libudev.so is installed and it works because
all dependent libraries are already installed in / instead of /usr on
most distros:

 $ ldd /usr/lib64/libgudev-1.0.so
         linux-vdso.so.1 =>  (0x00007fff44dff000)
         libudev.so.0 => /lib64/libudev.so.0 (0x0000003bf2600000)
         libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003fb5200000)
         libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x0000003fb4e00000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d5b000000)
         librt.so.1 => /lib64/librt.so.1 (0x0000003d5b800000)
         libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003fb4a00000)
         libc.so.6 => /lib64/libc.so.6 (0x0000003d5ac00000)
         /lib64/ld-linux-x86-64.so.2 (0x0000003d5a800000)

With this change it is possible to write libgudev applications that
can be installed in /bin or /sbin and can run without /usr being
mounted. This is needed for e.g. udisks, NetworkManager and other
subsystem-specific daemons.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agocdrom_id: request the drive profile features with a dynamic length
Harald Hoyer [Thu, 7 Oct 2010 15:02:21 +0000 (17:02 +0200)]
cdrom_id: request the drive profile features with a dynamic length

Some drives don't like huge feature buffers, so we query twice. First
run for the current profile and to get the length.
Second time we query the whole profile feature set.

14 years agorelease 163
Kay Sievers [Thu, 7 Oct 2010 13:07:48 +0000 (15:07 +0200)]
release 163

14 years agoudevd: add sd-daemon.c
Kay Sievers [Thu, 7 Oct 2010 12:59:11 +0000 (14:59 +0200)]
udevd: add sd-daemon.c

14 years agosystemd: sort before basic.target
Kay Sievers [Thu, 7 Oct 2010 08:49:13 +0000 (10:49 +0200)]
systemd: sort before basic.target

14 years agocdrom_id: Don't read beyond "last track" in TOC
Martin Pitt [Tue, 5 Oct 2010 15:56:19 +0000 (17:56 +0200)]
cdrom_id: Don't read beyond "last track" in TOC

Read the first and last track from the TOC header, and do not go beyond that
stated number of tracks when reading the TOC. Otherwise we interpret random
data which leads to bogus tracks. (Reported on an IronKey, which reported 1
data track, and 4 audio tracks which weren't actually present.)

14 years agocdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands fail
Martin Pitt [Tue, 5 Oct 2010 12:59:51 +0000 (14:59 +0200)]
cdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands fail

Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks
like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older
(pre-MMC2) "READ DISC INFORMATION" command. In that case, check if
cd_media_compat() detected that there is a disc present, and assume that we
have a CD-ROM medium.

14 years agoRevert "cdrom_id: Try reading the medium if all MMC commands fail"
Martin Pitt [Tue, 5 Oct 2010 12:57:04 +0000 (14:57 +0200)]
Revert "cdrom_id: Try reading the medium if all MMC commands fail"

Turns out we can do this much simpler by assuming that cd_media_compat() works,
which seems to be the case for the IronKey.

This reverts commit ea88774a922c734afd751a59d8102bfa4806a1a6.

14 years agocdrom_id: Try reading the medium if all MMC commands fail
Martin Pitt [Tue, 5 Oct 2010 12:34:55 +0000 (14:34 +0200)]
cdrom_id: Try reading the medium if all MMC commands fail

Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks
like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older
(pre-MMC2) "READ DISC INFORMATION" command. In that case, check if we can read
data from the drive, and assume that we have a CD-ROM medium if it succeeds.

14 years agosystemd: hook into basic.target instead of sysinit.target
Kay Sievers [Tue, 28 Sep 2010 22:48:35 +0000 (00:48 +0200)]
systemd: hook into basic.target instead of sysinit.target

14 years agokeymap: Add alternate MSI vendor name
Lee, Chun-Yi [Sat, 25 Sep 2010 08:50:27 +0000 (16:50 +0800)]
keymap: Add alternate MSI vendor name

Add new vendor name "Micro-Star International" in 95-keymap.rules.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agoAdd automatic rules syntax check
Martin Pitt [Tue, 21 Sep 2010 10:45:52 +0000 (12:45 +0200)]
Add automatic rules syntax check

Add test/rule-syntax-check.py, a script for checking the syntax of all udev
rules files passed as command line arguments.

Add a wrapper test/rules-test.sh which calls rule-syntax-check.py on all udev
rules that we ship, but does nothing if Python is not available. Integrate this
into make check/distcheck.

14 years agofix various syntax errors in rules
Martin Pitt [Tue, 21 Sep 2010 10:14:50 +0000 (12:14 +0200)]
fix various syntax errors in rules

14 years agoClarify WAIT_FOR documentation
Martin Pitt [Tue, 21 Sep 2010 10:12:01 +0000 (12:12 +0200)]
Clarify WAIT_FOR documentation

The path is relative to the sysfs device, so this provides an easy way to wait
for an attribute to appear.

14 years agogudev: add a few annotations that newer gobject-introspection versions demand
Torsten Schoenfeld [Mon, 20 Sep 2010 08:25:55 +0000 (10:25 +0200)]
gudev: add a few annotations that newer gobject-introspection versions demand

14 years agokeymap: Add Lenovo Y550
Martin Pitt [Tue, 14 Sep 2010 16:21:13 +0000 (18:21 +0200)]
keymap: Add Lenovo Y550

https://launchpad.net/bugs/543065

14 years agoBump required GLib version to 2.22
David Zeuthen [Tue, 7 Sep 2010 15:11:11 +0000 (11:11 -0400)]
Bump required GLib version to 2.22

This is needed for g_main_context_get_thread_default().

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agogudev: Deliver ::uevent signal in the thread-default main loop
David Zeuthen [Tue, 7 Sep 2010 15:01:23 +0000 (11:01 -0400)]
gudev: Deliver ::uevent signal in the thread-default main loop

... that the GUdevClient object was constructed in. This change makes
GUdev follow the GLib guidelines and, more importantly, makes it
possible to actually use the library in a multi-threaded
application. Prior to this patch, signals were emitted in the thread
that ran the "default" main loop.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoscsi_id: fix compiler warnings
Kay Sievers [Tue, 7 Sep 2010 06:24:12 +0000 (08:24 +0200)]
scsi_id: fix compiler warnings

14 years agoscsi_id: export target port group
Hannes Reinecke [Mon, 6 Sep 2010 09:00:22 +0000 (11:00 +0200)]
scsi_id: export target port group

For ALUA support it's useful to have the target port group number
of a device.

Signed-off-by: Hannes Reinecke <hare@suse.de>
14 years agoversion bump
Kay Sievers [Fri, 3 Sep 2010 13:14:36 +0000 (15:14 +0200)]
version bump

14 years agorelease 162
Kay Sievers [Fri, 3 Sep 2010 13:07:03 +0000 (15:07 +0200)]
release 162

14 years agoRevert "Add alternative KVM MAC address blacklist"
Kay Sievers [Fri, 3 Sep 2010 12:08:14 +0000 (14:08 +0200)]
Revert "Add alternative KVM MAC address blacklist"

This reverts commit 634afac119bbe6bc21719ae3daa45805b1cf3334.

54:52:00 was just a bug in libvirt, and that's better fixed locally,
and we should not carry it in udev rules.

14 years agosystemd: enable all udev services unconditionally
Kay Sievers [Fri, 3 Sep 2010 11:30:57 +0000 (13:30 +0200)]
systemd: enable all udev services unconditionally

14 years agoChangeLog fix
Michal Soltys [Fri, 3 Sep 2010 08:53:26 +0000 (10:53 +0200)]
ChangeLog fix

In v141 -> v142 entry, there's a note about udevd creating
/dev/{null,kmsg,console}. It was added in commit 540f46698dd5a3b,
but shortly after that removed in a00bdfa16b9bac7 before v142
release.

Signed-off-by: Michal Soltys <soltys@ziu.info>
14 years agoAdd alternative KVM MAC address blacklist
Martin Pitt [Thu, 2 Sep 2010 09:11:32 +0000 (11:11 +0200)]
Add alternative KVM MAC address blacklist

Reportedly, older KVM/Qemu instances indeed do use 54:52:00:*,
so add this as an alternative.

14 years agoDon't install systemd scripts with --without-systemdsystemunitdir
Michael Forney [Fri, 27 Aug 2010 02:10:03 +0000 (19:10 -0700)]
Don't install systemd scripts with --without-systemdsystemunitdir

Currently, the scripts get installed to /no/ if that option is
specified.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agodo not create persistent name rules for VMWare network interfaces
Martin Pitt [Thu, 2 Sep 2010 06:39:12 +0000 (08:39 +0200)]
do not create persistent name rules for VMWare network interfaces

Not generating persistent MAC address rules will significantly ease cloning of
VMs.  The kernel reliably sorts eth* enumeration by bus number, so as long as
you only have cards from one vendor (or more precisely, drivers), the
enumeration will be stable. Having cards from different vendors is very
unlikely in VMs.

KVM was already covered in the previous commit, this is the equivalent
blacklist for VMWare:

  http://www.coffer.com/mac_find/?string=005056
  http://www.coffer.com/mac_find/?string=000c29

https://launchpad.net/bugs/341006

14 years agoFix KVM MAC address range
Martin Pitt [Thu, 2 Sep 2010 06:32:43 +0000 (08:32 +0200)]
Fix KVM MAC address range

KVM uses 52:54:00:* MACs:

  http://git.savannah.gnu.org/cgit/qemu.git/tree/net.c#n796

14 years agodo not create persistent name rules for KVM network interfaces
Marco d'Itri [Tue, 31 Aug 2010 19:44:34 +0000 (21:44 +0200)]
do not create persistent name rules for KVM network interfaces

The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48
range of KVM.

14 years agoset SELinux context on 'add' but not on 'change' events
Kay Sievers [Tue, 31 Aug 2010 19:29:21 +0000 (21:29 +0200)]
set SELinux context on 'add' but not on 'change' events

14 years agocdrom_id: Fix DVD blank detection for sloppy firmware
Jan Drzewiecki [Mon, 30 Aug 2010 22:37:28 +0000 (00:37 +0200)]
cdrom_id: Fix DVD blank detection for sloppy firmware

Reportedly, many CD drive firmwares will only consider the MSB in a READ
command, thus if we request 17 blocks to be read, we'll actually only get 16 in
many cases, and thus miss out the interesting sector #17. This would lead to
falsely considering nonempty DVDs as blank.

Fetch 32 blocks now, which should work everywhere.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agocdrom_id: Fix DVD-RW media detection
Martin Pitt [Mon, 30 Aug 2010 13:33:26 +0000 (15:33 +0200)]
cdrom_id: Fix DVD-RW media detection

Commit cf2205a19 applied the "restricted overwrite" vs. "sequential" DVD-RW
test to feature_profiles() (which reads the drive capabilities), which caused
every DVD medium to be detected as ID_CDROM_MEDIA_DVD_RW. Now apply it to
cd_profiles() instead, to just check the current profile.

14 years agokeymap: Fix Acer TravelMate 4720
Martin Pitt [Fri, 27 Aug 2010 16:48:53 +0000 (18:48 +0200)]
keymap: Fix Acer TravelMate 4720

The previous change just fixed the Bluetooth key, but Screen Lock and Browser
also need to be changed.

https://launchpad.net/bugs/569815

14 years agogudev: fix crash if netlink is not available
Martin Pitt [Fri, 27 Aug 2010 16:12:59 +0000 (18:12 +0200)]
gudev: fix crash if netlink is not available

gudev_client_new() assumes that priv->monitor is never NULL, but this happens
on older kernels. Let's not crash client programs because of that.

https://launchpad.net/bugs/581527

14 years agoudev(7) manpage: Fix description of $attr
Martin Pitt [Fri, 27 Aug 2010 14:54:52 +0000 (16:54 +0200)]
udev(7) manpage: Fix description of $attr

Fix the manpage to describe the real behaviour of $attr: It doesn't search all
parent devices any more, just the one selected by KERNELS etc.

https://launchpad.net/bugs/348513

14 years agokeymap: Fix Sony VAIO VGN-SZ2HP/B
Martin Pitt [Wed, 25 Aug 2010 15:02:51 +0000 (17:02 +0200)]
keymap: Fix Sony VAIO VGN-SZ2HP/B

Reportedly this needs the module-sony keymap, not the -old one.

https://launchpad.net/bugs/613578

14 years agoAdd support for oom_score_adj
Luca Tettamanti [Mon, 23 Aug 2010 12:35:37 +0000 (14:35 +0200)]
Add support for oom_score_adj

/proc/<pid>/oom_adj has been deprecated (kernel v2.6.36) due to the
rework of the badness heuristic; oom_score_adj is the replacement.
Keep a fallback to the old interface for compatibility with older
kernels.

See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a63d83f427fbce97a6cea0db2e64b0eb8435cd10

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
14 years agoudevd: remove unneeded credential passing from init_notify()
Kay Sievers [Wed, 25 Aug 2010 14:26:54 +0000 (16:26 +0200)]
udevd: remove unneeded credential passing from init_notify()