1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 00:51:08 +03:00
Commit Graph

429 Commits

Author SHA1 Message Date
Kay Sievers
88b74dc692 edd_id: move persistent rules to its own file 2007-08-14 11:06:39 +02:00
Marco d'Itri
0837c28e9b rules_generator: fix write_cd_rules when similar names exist in the root directory
The argument to find_all_rules must be quoted or it will be subject to
shell expansion, which will happen if in the root directory there are
mount points with the same base name.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407738 for details.
2007-08-07 10:39:07 +02:00
Marco d'Itri
14e1e49484 rules_generator: remove policy from write_cd_rules
The decision about when to create by-id or by-path persistent rules should
be made in the generator rules file where it's obvious and easy to modify
locally, not in the script.
2007-08-07 10:37:58 +02:00
Kay Sievers
dcfa2acce3 rules_generator: skip random MAC addresses 2007-08-02 21:19:41 +02:00
Kay Sievers
9b23e594bf rules_generator: remove "installation" function
This should be called by triggering events not by looping with
the script itself. It also keeps a second blacklist outside of
the rules which we do not want to maintain.
2007-07-25 18:16:11 +02:00
Hannes Reinecke
49369cafe4 rules_generator: add S/390 persistent network support 2007-07-25 15:42:39 +02:00
Hannes Reinecke
c7ae0d343b collect: extra to synchronize actions across events 2007-07-24 13:28:18 +02:00
Kay Sievers
9ea893ae25 libvolume_id: use /usr/$libdir in pc file 2007-07-22 19:58:04 +02:00
Kay Sievers
2e08169ed4 volume_id: ext4 detection 2007-07-08 17:25:55 +02:00
Kay Sievers
c51d06d3b7 rules_generator: remove executable flag from include file 2007-06-25 16:02:38 +02:00
David Zeuthen
1fdce2f39d vol_id: do not fail if unable to drop privileges 2007-06-07 00:56:20 +02:00
Kay Sievers
fd40749e68 scsi_id: fix typo in help text 2007-05-29 21:26:01 +02:00
Kay Sievers
596714857b path_id: skip subsystem directory 2007-05-29 21:23:20 +02:00
Kay Sievers
9eaa50d0e7 scsi_id: add long options 2007-05-25 17:37:47 +02:00
Hannes Reinecke
87cf9f5aac cciss device support 2007-05-25 14:48:08 +02:00
Ryan Lortie
335b8aace3 volume_id: support for long-filename based labels 2007-05-25 03:36:59 +02:00
Kay Sievers
a3b836c6c2 volume_id: terminate overlong label strings 2007-05-25 03:35:18 +02:00
Kay Sievers
b8cf73a533 scsi_id: do not install symlink in /sbin 2007-05-21 08:00:45 +02:00
Kay Sievers
8cc6c96f1b volume_id: escape % character 2007-05-21 07:17:09 +02:00
Kay Sievers
d727cb9075 vol_id: export encoded strings 2007-05-17 20:10:09 +02:00
Kay Sievers
b10941c08d volume_id: add and export string encoding function
Needed for mount(8) to lookup LABEL=* in /dev/disk/by-label/*. Characters
not suited for a filename will be escaped and the encoded LABEL=* string
is able to find the corresponding symlink.
2007-05-17 20:09:24 +02:00
Kay Sievers
2f2c4fa442 replace_chars: replace spaces in node name 2007-05-17 20:01:54 +02:00
Kay Sievers
c6594afda4 volume_id: add function documentation 2007-05-15 01:11:48 +02:00
Kay Sievers
f1a9ac32b9 create_floppy_devices: remove dead "unlink" code 2007-05-15 01:08:48 +02:00
Miklos Vajna
88243f0974 path_id: remove on make uninstall 2007-05-13 00:06:26 +02:00
Miklos Vajna
74ced8c890 create_floppy_devices: add man page 2007-05-13 00:02:20 +02:00
Kay Sievers
f29fdd3cef volume_id: vol_id depends on libvolume_id 2007-05-10 12:40:18 +02:00
Kay Sievers
223cfa97fc volume_id: add remaining names for prober lookup by type 2007-05-09 16:06:15 +02:00
Kay Sievers
9377c8d80c vol_id: use libvolume_id prober list for --probe-all 2007-05-08 20:00:02 +02:00
Kay Sievers
c1091150be volume_id: give access to list of all available probers 2007-05-08 19:59:23 +02:00
Kay Sievers
1c6c7ab118 vol_id: add ID_FS_UUID_SAFE 2007-05-06 02:24:21 +02:00
Kay Sievers
13361e4704 volume_id: rename UUID_64BIT_LE/BE 2007-05-06 02:23:48 +02:00
Kay Sievers
68d5578852 vol_id: README update 2007-05-04 17:16:08 +02:00
Kay Sievers
a6abdbfc7e volume_id: add DDF support 2007-05-04 16:54:46 +02:00
Kay Sievers
444f07fea4 volume_id: add internal UUID_STRING 2007-05-04 16:53:19 +02:00
Matthias Schwarzott
ee466b321e volume_id: fix Makefile for parallel make 2007-05-03 23:24:17 +02:00
Kay Sievers
1d9cdcdf91 vol_id: use volume_id_get_* 2007-05-03 14:24:56 +02:00
Kay Sievers
e7ea9c50e8 volume_id: add volume_id_get_* functions
In a future version of libvolume_id, struct volume_id will be
an opaque data type, which can't be accessed directly.

No interface has changed for now, until all known users are
converted not to access the structure directly.
2007-05-03 14:22:39 +02:00
Kay Sievers
4a86b682ab vol_id: use long options 2007-05-03 11:00:02 +02:00
Kay Sievers
4c13270a77 volume_id: use md native uuid format 2007-05-03 09:24:16 +02:00
Kay Sievers
4fa3d99db7 ata_id: use getopt_long() 2007-05-01 14:19:31 +02:00
Kay Sievers
5f605a6cf1 usb_id: add <devpath> to help text 2007-05-01 14:18:36 +02:00
Matthias Schwarzott
cfdea0f647 ata_id: don't log error for libata devices on older kernels 2007-04-29 00:08:30 +02:00
Kay Sievers
6ed3edfb69 volume_id: minix version 3 support 2007-04-28 23:45:49 +02:00
Kay Sievers
e18e6d7999 volume_id: old md metadata has only 32 bit for the uuid 2007-04-28 23:06:20 +02:00
Kay Sievers
01ad1ef5f3 volume_id: ext - fix endianess in version number 2007-04-26 22:46:27 +02:00
Kay Sievers
07bc6002ca volume_id: add md metadata 1.0, 1.1, 1.2 support 2007-04-24 18:35:24 +02:00
Kay Sievers
9c84cf964c remove eventrecorder.sh 2007-04-24 01:49:43 +02:00
Kay Sievers
285e2f5218 libvolume_id: do not install static library 2007-04-23 17:44:19 +02:00
Kay Sievers
6ecad86d49 path_id: remove broken example 2007-04-22 14:19:14 +02:00
VMiklos
8127859217 path_id: add man page 2007-04-22 14:10:18 +02:00
Harald Hoyer
7c70c25212 create_floppy_devices: create nodes with correct selinux context 2007-04-12 01:10:08 +02:00
Kay Sievers
a401355d5a finally remove the directory event-multiplexer crap 2007-03-28 20:35:05 +02:00
Matthias Schwarzott
491a6a71ff write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices 2007-03-22 21:05:56 +01:00
Kay Sievers
1ce3e4fef0 run_directory: add final warning before removal 2007-03-21 14:22:50 +01:00
Kay Sievers
e578a44746 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/.
2007-03-21 13:55:48 +01:00
Kay Sievers
f0f7c715ae volume_id: get rid of compiler warning 2007-03-18 12:55:21 +01:00
Kay Sievers
9923ff1450 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
2007-03-12 13:17:23 +01:00
Kay Sievers
5b7363c064 create_floppy_devices: apply specified mode without umask 2007-03-08 12:28:03 +01:00
Matthias Schwarzott
1f889fb84f rule_generator: fix for creating rules on read-only filesystem 2007-02-26 15:07:42 +01:00
Kay Sievers
58310f6698 scsi_id: accept tabs in /etc/scsi_id.conf 2007-02-25 22:14:14 +01:00
Kay Sievers
915fde1738 update DRIVER== changes 2007-02-24 23:43:04 +01:00
Kay Sievers
e5f76f6613 create_floppy_devices: add option for owner/group 2007-02-14 22:29:03 +01:00
Kay Sievers
5ab2e3c2c3 path_id: append LUN to iSCSI path 2007-02-05 16:15:52 +01:00
Kay Sievers
bba8160f51 man: correct udevinfo --export-db
Thanks to: Matthias Schwarzott <zzam@gentoo.org>
2007-02-05 16:03:00 +01:00
Kay Sievers
ac77e95948 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.
2007-02-03 01:12:34 +01:00
A. Costa
6ff4253618 man: fix typos in scsi_id and udevd 2007-01-28 15:13:36 +01:00
Andrey Borzenkov
27283c2fda vol_id: document -L 2007-01-22 22:27:16 +01:00
Andrey Borzenkov
ede9b54171 vol_id: add -L to print raw partition label 2007-01-21 22:49:45 +01:00
Matthias Schwarzott
bb0f7466a0 correct typo in extras/scsi_id/scsi_id.conf 2007-01-21 15:51:28 +01:00
Peter Breitenlohner
86f4ea067e fix INSTALL_PROGRAM vs. INSTALL_SCRIPT 2007-01-21 15:48:58 +01:00
Marco d'Itri
5284454d5f scsi_id: remove trailing garbage from ID_SERIAL_SHORT 2006-11-27 17:13:19 +01:00
Marco d'Itri
64e6d9dd70 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.
2006-11-27 10:34:43 +01:00
Kay Sievers
26133d54e0 man: recreate from xml 2006-11-27 10:30:17 +01:00
Kay Sievers
aa68c048f8 volume_id: fix endianess bug in linux_raid detection 2006-11-15 20:41:25 +01:00
Kay Sievers
2412f0886d volume_id: add comment about hfs uuid conversion 2006-10-15 18:20:15 +02:00
Kay Sievers
2658afdcf1 volume_id: add checksum check to via_raid 2006-10-13 13:17:13 +02:00
Kay Sievers
11678eff6a scsi_id: export ID_SERIAL_SHORT without vendor/product 2006-10-10 16:56:09 +02:00
MUNEDA Takahiro
56baaedc90 path_id: fix SAS disk handling 2006-10-02 16:02:42 +02:00
Bryan Kadzban
53fc01d507 add IMPORT operations to the udev man page 2006-09-23 22:10:55 +02:00
Kay Sievers
4ca254b382 volume_id: correct iso9660 high sierra header
Thanks to David Härdeman.
2006-09-12 14:33:06 +02:00
Kay Sievers
8091f6a90c rule_generator: improve net rule comment generation 2006-09-09 14:45:45 +02:00
Marco d'Itri
fbcbf70bb2 add persistent rules generator for net devices and optical drives 2006-09-05 15:20:28 +02:00
Kay Sievers
d60fd52af8 remove broken name_cdrom.pl
We never get an event on media change, so this script can't work.
2006-09-05 14:00:47 +02:00
Kay Sievers
e136a3360b cdrom_id: add rules file to call cdrom_id 2006-09-05 03:43:14 +02:00
Kay Sievers
27b77df44d update source file headers 2006-08-28 00:29:11 +02:00
Kay Sievers
5c51e31e0e vol_id: use primary group of 'nobody' instead of 'nogroup'
This fixes a Fedora issue not having the group 'nogroup'.
2006-08-20 18:24:34 +02:00
Kay Sievers
708cb35941 volume_id: add suspend partition detection
Based on a patch from:
  Scott James Remnant <scott@ubuntu.com>
2006-08-20 18:23:48 +02:00
Kay Sievers
95776dc6ec consistent key naming to match only the event device or include all parent devices
This scheme is more consistent and makes it obvious if a match happens
against the event device only, or the full chain of parent devices.

The old key names are now:
  BUS -> SUBSYSTEMS
  ID -> KERNELS
  SYSFS -> ATTRS
  DRIVER -> DRIVERS

Match keys for the event device:
  KERNEL
  SUBSYSTEM
  ATTR
  DRIVER (in a future release, for now the same as DRIVERS)

Match keys for all devices along the parent device chain:
  KERNELS
  SUBSYSTEMS
  ATTRS
  DRIVERS

ID, BUS, SYSFS are no longer mentioned in the man page but still work.
DRIVER must be converted to DRIVERS to match the new scheme. For now,
an error is logged, if DRIVER is used. In a future release, the DRIVER
key behaviour will change.
2006-08-19 16:06:25 +02:00
Lennart Poettering
aa9a49b4b3 volume_id: fix fat32 cluster chain traversal 2006-08-15 23:53:14 +02:00
Kay Sievers
05ec6e7507 switch ifdef __KLIBC__ to ifndef __GLIBC__ 2006-08-05 00:35:05 +02:00
Kay Sievers
eb82b76ded libvolume_id: read ufs2 label
Taken from the FreeBSD HAL repository.
2006-08-05 00:02:58 +02:00
Kay Sievers
55c1768ca1 refresh vol_id man page 2006-07-29 02:13:42 +02:00
Marco d'Itri
1d569d17b2 path_id: fix an harmless syntax error 2006-07-29 01:01:21 +02:00
Kay Sievers
cdf1894863 libvolume_id: add parameter 'size' to all probe functions 2006-07-25 14:59:50 +02:00
Kay Sievers
7d5ccc0810 vol_id: add --skip-raid and --probe-all option 2006-07-13 16:59:01 +02:00
Kay Sievers
f566b05b57 firmware.sh: remove needless '/' 2006-07-11 14:16:59 +02:00
Kay Sievers
c2e04d6b8b path_id: prepare for new sysfs layout 2006-07-09 21:32:55 +02:00
Kay Sievers
c76b97dc4d Makefiles: fix .PHONY for man page target
Thanks to David Härdeman for pointing it out.
2006-07-04 18:41:07 +02:00
Kay Sievers
b879c303a7 netif rename: optimistic loop for the name to become free
Parts from Ubuntu's 70-ifrename.patch.
2006-07-03 00:58:35 +02:00