1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
Commit Graph

1733 Commits

Author SHA1 Message Date
Kay Sievers
8687cbfffb libsysfs: remove brute-force "bus", "driver" searching for old kernels
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-02 04:58:59 +01:00
Kay Sievers
0747dd884a use libsysfs to translate the class linke to the device path
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-02 04:05:06 +01:00
Kay Sievers
8ebe9547a8 revert the "read symlink as device patch"
It's covered by libsysfs now.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-02 04:04:19 +01:00
Ananth N Mavinakayanahalli
7a551dc355 libsysfs: translate devpath of the symlinked class devices to its real path 2005-11-02 04:02:33 +01:00
Jan Luebbe
0c25d156b0 add man pages for *_id programs
I've written manpages for the *_id binaries, which are attached to this
mail.
2005-10-31 02:10:56 +01:00
Kay Sievers
2a4ce70925 remove no longer needed waiting for "dev" file
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-10-29 21:13:43 +02:00
Kay Sievers
29ed5bf414 add dummy inotify syscalls on unsupported architecture
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-10-28 02:29:38 +02:00
Kay Sievers
c1bf1edeb7 "STRIPCMD=" for the EXTRAS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28 01:49:22 +02:00
Kay Sievers
90e037dbe2 remove no longer working udevd-test program
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28 00:29:50 +02:00
Kay Sievers
6cb1bbe471 "make STRIPCMD=" will disable the stripping of binaries
Almost all packagers have always patched the stripping out,
cause the buildsystems takes care of it.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 21:49:13 +02:00
Kay Sievers
c895fd0027 move rules parsing into daemon
The rules files are parsed only once at daemon startup. Every udev
event process will be fork()'d from udevd without exec()'ing the udev
binary. The in-memory rules will be inherited from the daemon itself.

If inotify is available, udevd will reload all rules if any change in
/etc/udev/rules.d/ happens. Otherwise -HUP or "udevcontrol reload_rules"
can be used.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 21:04:38 +02:00
Kay Sievers
916c5e4725 fix the new warnings I asked for
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 20:32:07 +02:00
Kay Sievers
cf686d37b4 cleanup make release
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 19:38:36 +02:00
Kay Sievers
f032e0ed6b allow to pass STRIPCMD, to skip stripping of binaries
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 19:14:21 +02:00
Kay Sievers
49fb51c615 use DESTDIR on uninstall, no need to pass prefix to submake
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-10-27 18:42:52 +02:00
Kay Sievers
638b983b4d cleanup compiler/linker flags
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 18:20:58 +02:00
Kay Sievers
e4b1a0f608 FAQ: remove confusing statement about module loading
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 13:13:25 +02:00
Kay Sievers
81d719a1d4 volume_id: Version 052
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 21:13:10 +02:00
Kay Sievers
7f0a5b8095 volume_id: fix typo in ext blocksize check
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 21:12:51 +02:00
Kay Sievers
eba25b20ce volume_id: Version 051
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 19:16:01 +02:00
Kay Sievers
04b222b4b0 volume_id: make FAT32 recognition more robust
FAT32 volumes should never have a cluster count, that fits
into a 16 bit value, but mkdosfs can create such volumes.
No sane formatter or Windows will ever do this, but the
Linux kernel as Windows can read/write it.

Thanks to Ted Ts'o <tytso@mit.edu> for convincing me.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 19:15:07 +02:00
Kay Sievers
1305b47167 volume_id: add vxfs include
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 18:56:30 +02:00
Kay Sievers
b586687138 volume_id: fix typo in ocfs
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 18:55:22 +02:00
Kay Sievers
f3c14c6849 volume_id: move blocksize validation to fix jbd recognition
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 18:54:34 +02:00
Kay Sievers
c929358e02 volume_id: check ext fs for valid blocksize, cause magic is only 2 bytes
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 17:41:55 +02:00
Kay Sievers
79bd4f2229 volume_id: add Veritas fs
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 16:31:13 +02:00
Kay Sievers
0ecc6c1b19 volume_id: add OVFS Version 1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-23 16:08:56 +02:00
Kay Sievers
a743be9a78 071 release 2005-10-20 00:28:34 +02:00
Kay Sievers
daff48063e libsysfs: accept sysmlinks to directories instead of real directories
Recent changes to the sysfs layout introduced class-devices pointed to
by a symlink, instead of the real object at that location.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-19 23:59:54 +02:00
Kay Sievers
586e1a37ef fix selinux compilation
Taken from Red Hat CVS.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-16 14:16:43 +02:00
Kay Sievers
dfedc446db udevd: move logging from err to info for non-hotplug uevent
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-12 11:55:49 +02:00
Kay Sievers
a5c606f6c3 force event socket buffer size to 16MB
Netlink events get lost when the kernel creates thousends of events
faster than udevd reads it. The default is 128 KB, which can carry
app. 500 events. Set it to 16 MB now.

  I have 4000 fibrechannel LUNs connected to my system.  There are two
  paths to the devices and two ports on the host connected via a switch.
  This gives 16000 when probed.
  I have had problems getting all of the entries in /dev created.
  -- Mark Haverkamp <markh@osdl.org>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-11 21:06:50 +02:00
Kay Sievers
133326dc74 udevd: fix initial timeout handling
UDEVD_EVENT_TIMEOUT=0 didn't work directly after udevd startup.
The whole event timeout handling is not needed since we use netlink.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-03 16:36:52 +02:00
Kay Sievers
c2df8b5f51 clarify README
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-03 16:28:11 +02:00
9bd72b9b6b Merge branch 'master' from gregkh@master.kernel.org:/pub/scm/linux/hotplug/udev 2005-09-27 08:12:09 -07:00
3162a25fd3 Remove the udev.spec file as no one uses it anymore
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-09-27 08:11:31 -07:00
Kay Sievers
af2703d39a update Debian persistent rules 2005-09-27 16:43:27 +02:00
Kay Sievers
144d1c9707 add edd-*-part%n to the persistent.rules
Thanks to:
  Marco d'Itri <md@Linux.IT>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-27 16:38:43 +02:00
Kay Sievers
2321ba6fd8 switch tools and volume_id from LGPL to GPLv2
After beeing hit by proprietary applications which statically
link the LGPL'd libusb, which needs a patch to reflect the recent
kernel changes, I decided not to provide LGPL code anymore.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-27 16:27:35 +02:00
Kay Sievers
2d8af104e0 remove no longer needed includes
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-27 15:05:34 +02:00
Kay Sievers
6e01a73fc3 update Debian rules 2005-09-23 09:51:49 +02:00
Kay Sievers
5bd4c5d72a update Fedora rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 05:37:33 +02:00
Kay Sievers
449ac79193 update Debian rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 05:34:05 +02:00
Kay Sievers
800c36cd64 update devfs rules header
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 05:08:52 +02:00
Kay Sievers
3a9fc64167 volume_id: set reiser instead of reiserfs for filesystem type
Thanks to Theodore Ts'o <tytso@mit.edu> for the hint and a test image.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 05:06:10 +02:00
Kay Sievers
0e5f8a1fcc scsi_id: switch temporary node creation to /dev
/tmp is not writable on most systems, so just use /dev to create a
temporary node. If called from a udev rule, "-d $tempnode" should be
used and udev will create a temporary node and pass the name before
calling scsi_id.
Also remove gen_scsi_id_udev_rules.sh per Patrick's request, as it's
no longer needed with the persistent disk links.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 04:49:23 +02:00
Kay Sievers
a3f129d054 add "Persistent Device Naming" rules file for disks
Based on:
  "Linux Persistent Device Naming", 2004, Hannes Reinecke <hare@suse.de>
2005-09-18 04:41:09 +02:00
Kay Sievers
3515c0ad00 ata_id: open volume O_NONBLOCK
Opticals like that and should be ok for disks too, as long as we
don't read().

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-16 21:23:36 +02:00
John Hull
4b12433517 edd_id: check that EDD id is unique
The attached patch adds a check to edd_id.c to verify that the MBR
signature on the device node passed to the program is unique to only
that disk.

Signed-off-by: John Hull <john_hull@dell.com>
2005-09-16 21:10:12 +02:00
Marco d'Itri
77914dfeda run_directory: fix typo in "make install" 2005-09-16 21:05:15 +02:00