chiark / gitweb /
elogind.git
14 years agocreate_floppy_devices: create nodes with correct selinux context
Harald Hoyer [Wed, 11 Apr 2007 23:10:08 +0000 (01:10 +0200)]
create_floppy_devices: create nodes with correct selinux context

14 years agodefault rules: add libata compat links
Kay Sievers [Fri, 6 Apr 2007 17:53:20 +0000 (19:53 +0200)]
default rules: add libata compat links

14 years agoudevinfo: export all information stored in database
Kay Sievers [Fri, 6 Apr 2007 17:50:19 +0000 (19:50 +0200)]
udevinfo: export all information stored in database

14 years agoudevtest: import uevent variables if possible
Kay Sievers [Fri, 6 Apr 2007 17:18:33 +0000 (19:18 +0200)]
udevtest: import uevent variables if possible

14 years agomake ACTION!="add|change" working
Kay Sievers [Sat, 31 Mar 2007 00:46:32 +0000 (02:46 +0200)]
make ACTION!="add|change" working

Thanks to Scott for the suggestion.

14 years agoupdate SUSE rules
Kay Sievers [Sat, 31 Mar 2007 00:42:32 +0000 (02:42 +0200)]
update SUSE rules

14 years agoudevtest: export ACTION string if given as option
Kay Sievers [Sat, 31 Mar 2007 00:42:14 +0000 (02:42 +0200)]
udevtest: export ACTION string if given as option

14 years agorelease 108
Kay Sievers [Wed, 28 Mar 2007 18:47:26 +0000 (20:47 +0200)]
release 108

14 years agofinally remove the directory event-multiplexer crap
Kay Sievers [Wed, 28 Mar 2007 18:35:05 +0000 (20:35 +0200)]
finally remove the directory event-multiplexer crap

14 years agoupdate Gentoo rules
Matthias Schwarzott [Wed, 28 Mar 2007 18:31:19 +0000 (20:31 +0200)]
update Gentoo rules

14 years agoudevsettle: read udev not kernel seqnum first
Pozsar Balazs [Fri, 23 Mar 2007 16:21:46 +0000 (17:21 +0100)]
udevsettle: read udev not kernel seqnum first

14 years agodon't write to sysfs files during test run
Kay Sievers [Fri, 23 Mar 2007 16:18:03 +0000 (17:18 +0100)]
don't write to sysfs files during test run

14 years agoudevinfo: relax check for the correct device if looked up by name
Kay Sievers [Fri, 23 Mar 2007 16:17:18 +0000 (17:17 +0100)]
udevinfo: relax check for the correct device if looked up by name

14 years agowrite_cd_rules: set default link type to "by-id" for usb and ieee1394 devices
Matthias Schwarzott [Thu, 22 Mar 2007 20:05:56 +0000 (21:05 +0100)]
write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices

14 years agorelease 107
Kay Sievers [Wed, 21 Mar 2007 19:17:01 +0000 (20:17 +0100)]
release 107

14 years agoupdate Debian rules
Marco d'Itri [Wed, 21 Mar 2007 19:05:08 +0000 (20:05 +0100)]
update Debian rules

14 years agorun_directory: add final warning before removal
Kay Sievers [Wed, 21 Mar 2007 13:22:50 +0000 (14:22 +0100)]
run_directory: add final warning before removal

14 years agousb_id: append target:lun to storage device serial
Kay Sievers [Wed, 21 Mar 2007 12:55:48 +0000 (13:55 +0100)]
usb_id: append target:lun to storage device serial

Some broken usb-storage devices implement multiple
luns with all the same SCSI identifiers. Append the
target:lun to get unique names in /dev/disk/by-id/.

14 years agoudevinfo: print link priority
Kay Sievers [Wed, 21 Mar 2007 11:13:28 +0000 (12:13 +0100)]
udevinfo: print link priority

14 years agoudevtest: add --force mode
Kay Sievers [Wed, 21 Mar 2007 10:55:26 +0000 (11:55 +0100)]
udevtest: add --force mode

14 years agoupdate SUSE rules
Kay Sievers [Wed, 21 Mar 2007 00:58:24 +0000 (01:58 +0100)]
update SUSE rules

14 years agoman: add "link_priority" option
Kay Sievers [Mon, 19 Mar 2007 14:41:06 +0000 (15:41 +0100)]
man: add "link_priority" option

14 years agoupdate TODO
Kay Sievers [Mon, 19 Mar 2007 11:50:44 +0000 (12:50 +0100)]
update TODO

14 years agoif a node goes away, possibly restore a waiting symlink
Kay Sievers [Mon, 19 Mar 2007 10:57:54 +0000 (11:57 +0100)]
if a node goes away, possibly restore a waiting symlink

14 years agoupdate %n on netif name change
Kay Sievers [Mon, 19 Mar 2007 08:56:53 +0000 (09:56 +0100)]
update %n on netif name change

14 years agoudevinfo: remove -d option
Kay Sievers [Sun, 18 Mar 2007 14:08:53 +0000 (15:08 +0100)]
udevinfo: remove -d option

14 years agovolume_id: get rid of compiler warning
Kay Sievers [Sun, 18 Mar 2007 11:55:21 +0000 (12:55 +0100)]
volume_id: get rid of compiler warning

14 years agopriority based symlink handling
Kay Sievers [Sun, 18 Mar 2007 11:51:57 +0000 (12:51 +0100)]
priority based symlink handling

Symlinks can have priorities now, the priority is assigned to the device
and specified with OPTIONS="link_priority=100". Devices with higher
priorities overwrite the symlinks of devices with lower priorities.
If the device, that currently owns the link goes away, the symlink
will be removed, and recreated, pointing to the next device with the
highest actual priority.

This should solve the issue, that inserting an USB-stick may overwrite the
/dev/disk/by-id/-link of another disk, and removes the entire link after the
USB-stick is disconnected. If no priorities are specified, the new link will
overwrite the current one, and if the device goes away, it will restore
the old link. It should be possible to assign lower priorities to removable
devices, if needed.

In multipath setups, we see several devices, which all connect to the same
volume, and therefore all try to create the same metadata-links. The
different path-devices are combined into one device-mapper device, which also
contains the same metadata. It should be possible, to assign multipath-table
device-mapper devices a higher priority, so path-devices that appear and
disappear, will not overwrite or delete the device-mapper device links.

14 years agoread list of devices from index, make index private to database
Kay Sievers [Sat, 17 Mar 2007 09:08:25 +0000 (10:08 +0100)]
read list of devices from index, make index private to database

14 years agoremove old error message
Kay Sievers [Fri, 16 Mar 2007 20:15:54 +0000 (21:15 +0100)]
remove old error message

14 years agoselinux: move selinux_exit() to the main programs
Kay Sievers [Fri, 16 Mar 2007 20:13:07 +0000 (21:13 +0100)]
selinux: move selinux_exit() to the main programs

14 years agocleanup already existing db-entries and db-index on device update
Kay Sievers [Fri, 16 Mar 2007 16:24:39 +0000 (17:24 +0100)]
cleanup already existing db-entries and db-index on device update

14 years agopick actual valid device in udev_db_lookup_name
Kay Sievers [Fri, 16 Mar 2007 15:02:22 +0000 (16:02 +0100)]
pick actual valid device in udev_db_lookup_name

14 years agoadd link_priority to rule options, and store it in database
Kay Sievers [Fri, 16 Mar 2007 14:16:08 +0000 (15:16 +0100)]
add link_priority to rule options, and store it in database

14 years agostore devpath with the usual leading slash
Kay Sievers [Fri, 16 Mar 2007 02:09:02 +0000 (03:09 +0100)]
store devpath with the usual leading slash

14 years agoudevtest: export UDEV_LOG if we changed it
Jean Tourrilhes [Fri, 16 Mar 2007 00:09:47 +0000 (01:09 +0100)]
udevtest: export UDEV_LOG if we changed it

14 years agoudevmonitor: fix swapped event switch descriptions
Matthias Schwarzott [Thu, 15 Mar 2007 15:30:08 +0000 (16:30 +0100)]
udevmonitor: fix swapped event switch descriptions

14 years agorestore overwritten symlinks when the device goes away
Kay Sievers [Thu, 15 Mar 2007 02:54:12 +0000 (03:54 +0100)]
restore overwritten symlinks when the device goes away

14 years agomaintain index over device-names to devpath relation
Kay Sievers [Thu, 15 Mar 2007 01:09:39 +0000 (02:09 +0100)]
maintain index over device-names to devpath relation

14 years agoincrease /proc/stat buffer
Kay Sievers [Wed, 14 Mar 2007 23:10:59 +0000 (00:10 +0100)]
increase /proc/stat buffer

14 years agoupdate internal variables if we see $DEVPATH during IMPORT
Kay Sievers [Wed, 14 Mar 2007 23:10:22 +0000 (00:10 +0100)]
update internal variables if we see $DEVPATH during IMPORT

14 years agoencode db-file names, instead of just replacing '/'
Kay Sievers [Wed, 14 Mar 2007 20:41:33 +0000 (21:41 +0100)]
encode db-file names, instead of just replacing '/'

14 years agoudevd: cleanup std{in,our,err} on startup
Matthias Schwarzott [Tue, 13 Mar 2007 21:27:21 +0000 (22:27 +0100)]
udevd: cleanup std{in,our,err} on startup

It occurs, when root-partition has no /dev/console, meaning that kernel
could not open it, and such udevd is started without open filedescriptors
0 1 2. In that case udevd openes its sockets (netlink and control). They
get fds between 0 and 2. Later duping /dev/null to 0 1 2 closes the sockets
and replaces them with /dev/null.

The error condition can also be reproduced by starting udevd with this
command-line:
  udevd --daemon <&- >&- 2>&-

14 years agoupdate Gentoo rules
Kay Sievers [Tue, 13 Mar 2007 21:20:53 +0000 (22:20 +0100)]
update Gentoo rules

14 years agodelete dasd_id, it moved to s390-tools
Kay Sievers [Mon, 12 Mar 2007 12:17:23 +0000 (13:17 +0100)]
delete dasd_id, it moved to s390-tools

  These s390-tools-1.6.0 (applicable for the "October 2005 stream") replace s390-tools-1.5.4.
  New tools:
    * tape390_crypt: Tool to control and query crypto settings for 3592 zSeries tape devices.
    * mon_fsstatd: Daemon that writes filesystem utilization data to the z/VM monitor stream.
    * dumpconf: Allows to configure the dump device used for system dump in case a kernel panic occurs.
    * dasdinfo: Display unique DASD ID, either uid or volser.
    * 59-dasd.rules: udev rules for unique DASD device nodes created in /dev/disk/.

  http://www.ibm.com/developerworks/linux/linux390/s390-tools-1.6.0.html

14 years agoupdate Fedora rules
Kay Sievers [Mon, 12 Mar 2007 12:05:34 +0000 (13:05 +0100)]
update Fedora rules

14 years agodefault rules: wait for 0:0:0:0 scsi devices only
Kay Sievers [Sun, 11 Mar 2007 19:23:42 +0000 (20:23 +0100)]
default rules: wait for 0:0:0:0 scsi devices only

14 years agoudevmonitor: add switch for kernel and udev events
Kay Sievers [Sat, 10 Mar 2007 14:12:42 +0000 (15:12 +0100)]
udevmonitor: add switch for kernel and udev events

14 years agoman: spelling fixes
Kay Sievers [Thu, 8 Mar 2007 12:59:28 +0000 (13:59 +0100)]
man: spelling fixes

Thanks to Robert P. J. Day.

14 years agocreate_floppy_devices: apply specified mode without umask
Kay Sievers [Thu, 8 Mar 2007 11:28:03 +0000 (12:28 +0100)]
create_floppy_devices: apply specified mode without umask

14 years agoman: fix typo
Kay Sievers [Wed, 7 Mar 2007 20:02:17 +0000 (21:02 +0100)]
man: fix typo

14 years agoman: add missing options to various man pages
Kay Sievers [Wed, 7 Mar 2007 17:00:12 +0000 (18:00 +0100)]
man: add missing options to various man pages

14 years agorelease 106
Kay Sievers [Sat, 3 Mar 2007 17:42:09 +0000 (18:42 +0100)]
release 106

14 years agoremove dead rule in persistent tape rules
Kay Sievers [Wed, 28 Feb 2007 16:26:05 +0000 (17:26 +0100)]
remove dead rule in persistent tape rules

Thanks to Matthias Schwarzott for spotting this.

14 years agopersistent device naming: tape devices and medium changers
Jamie Wellnitz [Tue, 27 Feb 2007 20:02:07 +0000 (21:02 +0100)]
persistent device naming: tape devices and medium changers

This adds persistent symlinks for nst tape devices to the example
rules. The symlinks live under /dev/tape/by-id/.

Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
14 years agorule_generator: fix for creating rules on read-only filesystem
Matthias Schwarzott [Mon, 26 Feb 2007 14:07:42 +0000 (15:07 +0100)]
rule_generator: fix for creating rules on read-only filesystem

14 years agoscsi_id: accept tabs in /etc/scsi_id.conf
Kay Sievers [Sun, 25 Feb 2007 21:14:14 +0000 (22:14 +0100)]
scsi_id: accept tabs in /etc/scsi_id.conf

14 years agoman: add note about parent matching behavior
Kay Sievers [Sun, 25 Feb 2007 00:26:53 +0000 (01:26 +0100)]
man: add note about parent matching behavior

14 years agoadd test for an attribute which contains an operator char
Kay Sievers [Sun, 25 Feb 2007 00:06:20 +0000 (01:06 +0100)]
add test for an attribute which contains an operator char

14 years agofix udev attribute names with a colon
Theodoros V. Kalamatianos [Sun, 25 Feb 2007 00:04:23 +0000 (01:04 +0100)]
fix udev attribute names with a colon

14 years agoremove --version from the udevinfo man page
Kay Sievers [Sat, 24 Feb 2007 22:57:04 +0000 (23:57 +0100)]
remove --version from the udevinfo man page

We have: udevd --version now, which is always available,
unlike udevinfo which is installed in /usr.

14 years agoadd option --version to udevd
Matthias Schwarzott [Sat, 24 Feb 2007 22:43:36 +0000 (23:43 +0100)]
add option --version to udevd

14 years agoupdate DRIVER== changes
Kay Sievers [Sat, 24 Feb 2007 22:43:04 +0000 (23:43 +0100)]
update DRIVER== changes

14 years agoadd (subsystem) to udevmonitor output
Kay Sievers [Fri, 16 Feb 2007 12:57:08 +0000 (13:57 +0100)]
add (subsystem) to udevmonitor output

14 years agoapply format chars to ATTR before writing to sysfs
Kay Sievers [Fri, 16 Feb 2007 12:20:34 +0000 (13:20 +0100)]
apply format chars to ATTR before writing to sysfs

14 years agoupdate example rules
Kay Sievers [Wed, 14 Feb 2007 21:39:39 +0000 (22:39 +0100)]
update example rules

14 years agocreate_floppy_devices: add option for owner/group
Kay Sievers [Wed, 14 Feb 2007 21:29:03 +0000 (22:29 +0100)]
create_floppy_devices: add option for owner/group

14 years agopath_id: append LUN to iSCSI path
Kay Sievers [Mon, 5 Feb 2007 15:15:52 +0000 (16:15 +0100)]
path_id: append LUN to iSCSI path

14 years agoman: correct udevinfo --export-db
Kay Sievers [Mon, 5 Feb 2007 15:03:00 +0000 (16:03 +0100)]
man: correct udevinfo --export-db

Thanks to: Matthias Schwarzott <zzam@gentoo.org>

14 years agorelease 105
Kay Sievers [Sat, 3 Feb 2007 00:24:48 +0000 (01:24 +0100)]
release 105

14 years agovolume_id: really fix endianess bug in linux_raid detection
Kay Sievers [Sat, 3 Feb 2007 00:12:34 +0000 (01:12 +0100)]
volume_id: really fix endianess bug in linux_raid detection

Seems we find the md signature in cpu-order on the disk. Let's
look for both endian encodings ...

Thanks to Michael Prokop for his help finding the bug.

14 years agoexclude parent devices from DRIVER== match
Kay Sievers [Thu, 1 Feb 2007 19:23:41 +0000 (20:23 +0100)]
exclude parent devices from DRIVER== match

We have DRIVERS= for this.

14 years agofix %c $string substitution
Sergey Vlasov [Thu, 1 Feb 2007 19:18:52 +0000 (20:18 +0100)]
fix %c $string substitution

Fix udev_rules_apply_format() to give error messages for unknown
format elements and pass such elements to the output string
unmodified.

When truncating the substitution string to the length specified in the
format string, head[len] = '\0' could write outside the buffer if that
length was too large.

14 years agoman: fix typos in scsi_id and udevd
A. Costa [Sun, 28 Jan 2007 14:13:36 +0000 (15:13 +0100)]
man: fix typos in scsi_id and udevd

14 years agofix retry-loop in netif-rename code
Matthias Schwarzott [Tue, 23 Jan 2007 19:01:30 +0000 (20:01 +0100)]
fix retry-loop in netif-rename code

14 years agounlink old database file before creating a new one
Sergey Vlasov [Tue, 23 Jan 2007 18:55:38 +0000 (19:55 +0100)]
unlink old database file before creating a new one

udev_db_add_device() can be called when the corressponding database
entry already exists - it should overwrite the old entry in this case.
However, if the old entry was a symlink, fopen(filename, "w") will not
overwrite it properly - it will keep the symlink and create a file
named after the symlink target.  Calling unlink(filename) before
trying to create the database file fixes the problem.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
14 years agovol_id: document -L
Andrey Borzenkov [Mon, 22 Jan 2007 21:27:16 +0000 (22:27 +0100)]
vol_id: document -L

14 years agoudevd: init signal pipe before daemonizing
Sergey Vlasov [Sun, 21 Jan 2007 21:51:53 +0000 (22:51 +0100)]
udevd: init signal pipe before daemonizing

14 years agovol_id: add -L to print raw partition label
Andrey Borzenkov [Sun, 21 Jan 2007 21:49:45 +0000 (22:49 +0100)]
vol_id: add -L to print raw partition label

14 years agocorrect typo in extras/scsi_id/scsi_id.conf
Matthias Schwarzott [Sun, 21 Jan 2007 14:51:28 +0000 (15:51 +0100)]
correct typo in extras/scsi_id/scsi_id.conf

14 years agofix INSTALL_PROGRAM vs. INSTALL_SCRIPT
Peter Breitenlohner [Sun, 21 Jan 2007 14:48:58 +0000 (15:48 +0100)]
fix INSTALL_PROGRAM vs. INSTALL_SCRIPT

14 years agorelease 104
Kay Sievers [Tue, 2 Jan 2007 14:58:41 +0000 (15:58 +0100)]
release 104

14 years agouse git-archive instead of git-tar-tree
Kay Sievers [Tue, 2 Jan 2007 14:57:45 +0000 (15:57 +0100)]
use git-archive instead of git-tar-tree

14 years agoupdate Fedora rules
Kay Sievers [Tue, 2 Jan 2007 14:36:04 +0000 (15:36 +0100)]
update Fedora rules

14 years agorename "udev.c" to "test-udev.c" - it is only for testing
Kay Sievers [Fri, 8 Dec 2006 09:29:17 +0000 (10:29 +0100)]
rename "udev.c" to "test-udev.c" - it is only for testing

14 years agoremove outdated documentation
Kay Sievers [Fri, 8 Dec 2006 09:10:56 +0000 (10:10 +0100)]
remove outdated documentation

14 years agorename config "filename" to "dir"
Kay Sievers [Fri, 8 Dec 2006 08:48:53 +0000 (09:48 +0100)]
rename config "filename" to "dir"

15 years agoinotify syscall definitions for M32R
Kazuhiro Inaoka [Wed, 6 Dec 2006 14:01:30 +0000 (15:01 +0100)]
inotify syscall definitions for M32R

15 years agoSELinux: label created symlink instead of node
Russell Coker [Tue, 5 Dec 2006 13:32:44 +0000 (14:32 +0100)]
SELinux: label created symlink instead of node

The current code will label the target of a symlink rather than the
link itself.  This means that the link does not get it's context set
and the target gets the wrong context.
Incidentally this affects the labelling of hard disk device nodes and
can get in the way of booting.

Also get_media() should not be called with devname==NULL.

15 years agoscsi_id: remove trailing garbage from ID_SERIAL_SHORT
Marco d'Itri [Mon, 27 Nov 2006 16:13:19 +0000 (17:13 +0100)]
scsi_id: remove trailing garbage from ID_SERIAL_SHORT

15 years agowrite_cd_rules: identity-based persistence
Marco d'Itri [Mon, 27 Nov 2006 09:34:43 +0000 (10:34 +0100)]
write_cd_rules: identity-based persistence

Bryan Kadzban wrote:
> Marco d'Itri wrote:
> > Bryan Kadzban wrote:
> >
> > > This is a sort of follow-up of my path-based persistence patch for
> > > net devices; it's the opposite type of addition for CD symlinks.
> >
> > Looks good. I am attaching a slightly reformatted version, I think it
> > should be applied.
>
> That's probably a lot more clear than my version anyway: what you posted
> looks like it does basically the same thing, just with some changes in
> the order and sense of checks.

15 years agoman: recreate from xml
Kay Sievers [Mon, 27 Nov 2006 09:30:17 +0000 (10:30 +0100)]
man: recreate from xml

15 years agoman: fix udevmonitor text
Kay Sievers [Mon, 27 Nov 2006 09:29:50 +0000 (10:29 +0100)]
man: fix udevmonitor text

Thanks to Bauke Jan Douma.

15 years agovolume_id: fix endianess bug in linux_raid detection
Kay Sievers [Wed, 15 Nov 2006 19:41:25 +0000 (20:41 +0100)]
volume_id: fix endianess bug in linux_raid detection

15 years agoupdate SUSE rules
Kay Sievers [Wed, 15 Nov 2006 19:40:26 +0000 (20:40 +0100)]
update SUSE rules

15 years agoupdate SUSE rules
Kay Sievers [Tue, 14 Nov 2006 19:16:35 +0000 (20:16 +0100)]
update SUSE rules

15 years agoupdate example rules
Kay Sievers [Tue, 14 Nov 2006 16:38:42 +0000 (17:38 +0100)]
update example rules

15 years agoupdate Fedora rules
Kay Sievers [Tue, 14 Nov 2006 16:38:04 +0000 (17:38 +0100)]
update Fedora rules

15 years agorelease 103
Kay Sievers [Fri, 20 Oct 2006 12:43:35 +0000 (14:43 +0200)]
release 103

15 years agoupdate Fedora rules
Kay Sievers [Sun, 15 Oct 2006 16:40:08 +0000 (18:40 +0200)]
update Fedora rules