1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 06:25:25 +03:00
Commit Graph

183 Commits

Author SHA1 Message Date
Kay Sievers
c7969cdbcb also accept real socket files for RUN+="socket:<path>" 2008-04-02 04:43:25 +02:00
Michael Kralka
c3b145a381 udevd: serialize events if they refer to the same major:minor number 2008-04-02 04:32:17 +02:00
Kay Sievers
225cb03bd8 udevadm: merge all udev tools into a single binary 2007-11-08 17:51:59 +01:00
Kay Sievers
ce39874580 use SEQNUM in /dev/.udev/queue/ instead of devpath 2007-09-20 00:41:54 +02:00
Kay Sievers
1113044be2 add $name substitution 2007-08-29 14:04:55 +02:00
Kay Sievers
a2f2270eef track "move" events to rename database and failed files 2007-08-26 05:22:35 +02:00
Matthias Schwarzott
f4dce170d5 fix inotify to work not only once 2007-07-26 13:04:13 +02:00
Kay Sievers
254d6d3ca2 handle dynamic rules created in /dev/.udev/rules.d/ 2007-07-15 19:10:06 +02:00
Kay Sievers
274da2b23d add udev_rules_run() to handle RUN list 2007-07-14 20:44:19 +02:00
Kay Sievers
fb819f5554 use global udev_log variable instead of parameter in run_program 2007-07-14 20:43:43 +02:00
Kay Sievers
4110664d4f add option to RUN key to ignore the return value of the program 2007-07-14 20:43:01 +02:00
Kay Sievers
3bf1efa8dd udevd: do not use syslog if --verbose (debugging) is used 2007-06-23 17:35:37 +02:00
Kay Sievers
92b229c727 no newline in log messages 2007-06-23 16:21:47 +02:00
Kay Sievers
fdc9a0b52a udevd: close /proc/meminfo after reading 2007-05-11 16:53:56 +02:00
Kay Sievers
9f1f67b168 udevd: use fgets() to read /proc files
Based on a patch by:
  George Beshers <gbeshers@sgi.com>
2007-05-03 23:21:11 +02:00
Harald Hoyer
1343a9524f udevcontrol: allow to set global variables in udevd
The initial patch is from Harald, possible new bugs are from me.
2007-04-26 22:52:20 +02:00
Kay Sievers
fc630edad4 udevd: fix serialization of events
We see sequences like:
  UEVENT[1176966403.907336] add@/block/dasda
  UDEV  [1176966403.920359] add@/block/dasda
  UEVENT[1176966403.964379] add@/block/dasda/dasda1
  UEVENT[1176966403.964438] add@/block/dasda/dasda2
  UEVENT[1176966403.964483] online@/block/dasda
  UEVENT[1176966403.964519] online@/block/dasda/dasda1
  UEVENT[1176966403.964555] online@/block/dasda/dasda2
  UDEV  [1176966403.967413] add@/block/dasda/dasda1
  UDEV  [1176966403.968719] add@/block/dasda/dasda2
  UDEV  [1176966403.974750] online@/block/dasda/dasda1
  UDEV  [1176966403.982241] online@/block/dasda/dasda2
  UDEV  [1176966403.999847] online@/block/dasda

where the event for the disk (last event) should come before the
events for the partitons. We skipped events for dependency reasons,
but the dependency check for later events did not see the skipped
events.
2007-04-19 22:21:05 +02:00
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