1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
Commit Graph

166 Commits

Author SHA1 Message Date
Kay Sievers
31de3a2ba1 read list of devices from index, make index private to database 2007-03-17 10:08:25 +01:00
Kay Sievers
456cb38756 selinux: move selinux_exit() to the main programs 2007-03-16 21:13:07 +01:00
Kay Sievers
fc6da921ad store devpath with the usual leading slash 2007-03-16 03:09:02 +01:00
Kay Sievers
8d48959a23 increase /proc/stat buffer 2007-03-15 00:10:59 +01:00
Kay Sievers
9c6ad9fbba encode db-file names, instead of just replacing '/' 2007-03-14 21:41:33 +01:00
Matthias Schwarzott
5edec024b1 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>&-
2007-03-13 22:27:21 +01:00
Matthias Schwarzott
841e168c76 add option --version to udevd 2007-02-24 23:43:36 +01:00
Sergey Vlasov
ff2eecef88 udevd: init signal pipe before daemonizing 2007-01-21 22:51:53 +01:00
Kay Sievers
9dd0c2573b rename config "filename" to "dir" 2006-12-08 09:48:53 +01:00
Kay Sievers
c7c00276f6 udevd: add --debug-trace option 2006-09-08 11:30:00 +02:00
Kay Sievers
9e8fe79b8e udevd: add --verbose option to log also to stdout 2006-09-08 11:28:38 +02:00
Kay Sievers
b52a01ee39 udevd: use getopt_long() 2006-09-08 11:27:03 +02:00
Kay Sievers
051445e078 udevd: use files instead of symlinks for /dev/.udev/queue,failed 2006-09-03 04:44:33 +02:00
Kay Sievers
fc89fe7edf udevtrigger: options to filter by subsystem and sysfs attribute 2006-09-03 03:04:20 +02:00
Kay Sievers
27b77df44d update source file headers 2006-08-28 00:29:11 +02:00
Kay Sievers
5780be9eab rename major/minor variable to maj/min to avoid warning 2006-08-24 10:25:34 +02:00
Marco d'Itri
2f64aa4056 fix rc when using udev --daemon 2006-08-22 23:20:15 +02:00
Kay Sievers
e3396a2d38 cleanup commandline argument handling
Print and log failure, but don't fail for tools which are
usually not used iteractively. Add '--help' to all tools.
2006-08-21 02:38:20 +02:00
Kay Sievers
220dac4c5e export DRIVER for older kernels as a replacement for PHYSDEVDRIVER 2006-08-20 18:19:08 +02:00
Harald Hoyer
eef7c9a385 selinux: init once in the daemon, not in every event process 2006-08-18 03:47:59 +02:00
Kay Sievers
469aa1df95 udevd: remove huge socket buffer on the control socket 2006-08-15 00:00:16 +02:00
Kay Sievers
254efc14a4 udevd: read DRIVER from the environment 2006-08-13 05:32:09 +02:00
Kay Sievers
f051e34069 udevd: autotune max_childs/max_childs_running 2006-08-10 12:50:53 +02:00
Kay Sievers
9824e9a764 udevd: remove useless udevinitsend parameter 2006-08-05 19:18:41 +02:00
Kay Sievers
239cc98b80 initialize unused sockets to -1 2006-08-05 13:24:05 +02:00
Kay Sievers
b3518c16e3 rename udevcontrol message types and variables 2006-08-05 13:22:44 +02:00
Kay Sievers
b437ec958a remove 'static' from local variable 2006-07-25 14:45:09 +02:00
Kay Sievers
e8c335b60a increase /proc/stat read buffer 2006-07-21 21:42:05 +02:00
Kay Sievers
733f070ddd switch uevent netlink socket to group 1 only 2006-07-21 21:41:11 +02:00
Kay Sievers
5005ca5991 remove udevsend 2006-05-27 12:20:51 +02:00
Kay Sievers
0e385feecc udevd: create leading directories for /dev/.udev/uevent_seqnum 2006-04-28 00:34:05 +02:00
Kay Sievers
90cd961e2c udevd: export initial sequence number on startup 2006-04-25 18:50:56 +02:00
Kay Sievers
03149e13c2 let udevmonitor show the possibly renamed devpath
For renamed network interfaces, the udev socket message header
contained the original devpath, which we have updated in the
environment after the kernel has silently renamed the netif.
2006-04-06 20:56:15 +02:00
Marco d'Itri
750d10daac add inotify support for hppa and MIPS and log if inotify is not available 2006-04-06 19:52:41 +02:00
Kay Sievers
7baada47be udevd: export current seqnum and add udevsettle 2006-04-05 00:08:10 +02:00
Kay Sievers
f660222775 correct use of fcntl() 2006-03-16 10:47:31 +01:00
Kay Sievers
3e5e833253 reset signal handler in event process 2006-03-16 10:46:30 +01:00
Kay Sievers
1a4e5303e0 udevd: fix queue export for multiple events for the same device
Identified by Joachim Plack <jplack@suse.de> while working around
the problem that the device nodes appear and disappear while the
partitiontable is re-read and the application need to waait for an
empty udevd queue.
2006-02-23 20:10:49 +01:00
Kay Sievers
4179809b22 remove UDEVD_UEVENT_INITSEND
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-28 05:04:38 +01:00
Kay Sievers
37854ffc9a let "ignore_device" always return the event successfully
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-25 02:21:07 +01:00
Kay Sievers
a9bd2ed84a rename apply_format() cause it is public now
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-25 01:28:31 +01:00
Andrey Borzenkov
f5f0c34f6d substitute format chars in RUN after rule matching
Apply substitutions before running a program, not while the rule
is parsed. It allows to use environment variables set during rule
processing as command arguments.
2006-01-24 20:10:48 +01:00
Kay Sievers
7d1e179f86 increase kernel uevent buffer size
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24 12:12:07 +01:00
Kay Sievers
0ec819d92b ignore all messages with missing devpath or action
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-20 02:54:31 +01:00
Kay Sievers
1aa1e24848 replace libsysfs
We never used any of the libsysfs convenience features. Here we replace
it completely with 300 lines of code, which are much simpler and a bit
faster cause udev(d) does not open any syfs file for a simple event which
does not need any parent device information.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09 21:18:00 +01:00
Kay Sievers
a2f87fddbf update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-04 01:48:53 +01:00
Kay Sievers
997b164d56 move SEQNUM event skipping to udevsend
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-25 19:03:16 +01:00
Scott James Remnant
1b75f1096e clean-up empty queue directories
This allows scripts to do:
  while test -d /dev/.udev/queue; do sleep 0.1; done

And don't create a failed symlink if there is another event
for the same devpath in the queue.
2005-11-22 15:49:49 +01:00
Kay Sievers
8813e55c74 udevd: add a missing return
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-17 18:53:53 +01:00
Kay Sievers
82de5983ab udevd: track killed event processes as failed
Thanks to Marco for catching this.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-17 16:34:37 +01:00