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

589 Commits

Author SHA1 Message Date
Kay Sievers
6e9edde6c9 firmware: do not print error if logger is missing 2007-10-16 00:54:14 +02:00
Matthias Schwarzott
dab3fe36cf firmware: remove hardcoded path to logger 2007-10-16 00:50:48 +02:00
Kay Sievers
963033472f usb_id: fail if vendor/product can not be retrieved
Thanks to Daniel Drake for identifying the bug.
2007-10-15 20:38:20 +02:00
Kay Sievers
8fe5f78b7e rule_generator: always match netif type in generated rule 2007-09-25 17:18:49 +02:00
Kay Sievers
c746922ca2 rule_generator: move all policy from write_net_rules to the rules file 2007-09-21 17:42:46 +02:00
Kay Sievers
b1ac36ff5e path_id: fix for stacked class devices 2007-09-10 00:59:07 +02:00
Kay Sievers
7b6fd01651 volume_id: fix linux_raid metadata version 1.0 detection
Fixes:
  https://bugs.launchpad.net/ubuntu/+source/udev/+bug/133773
2007-08-29 06:06:00 +02:00
Kay Sievers
dbb2c414d7 man: recreate man pages 2007-08-28 04:24:08 +02:00
Kay Sievers
7d6ffc7216 rule_generator: fix wrong DRIVERS!= logic
Thanks to Matthias for identifying that.
2007-08-21 23:05:47 +02:00
Kay Sievers
82d4209792 volume_id: fix sqashfs detection 2007-08-16 15:02:53 +02:00
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
Kay Sievers
e55a73abb0 libvolume_id: gfs + gfs2 support
Patch from Red Hat.
2006-05-30 16:01:28 +02:00
Kay Sievers
1388c83011 replace binary firmware helper with shell script 2006-05-28 10:23:32 +02:00
Kay Sievers
ecc527e0be path_id: prevent endless loop for SAS devices on older kernels 2006-05-26 17:35:44 +02:00
Hannes Reinecke
321f7bbb0a path_id: add support for iSCSI devices 2006-05-23 13:26:41 +02:00
Kay Sievers
6deef78755 libvolume_id: add more software raid signatures 2006-05-15 21:57:28 +02:00
Kay Sievers
2bac6c64aa libvolume_id: fat - check for signature at end of sector 2006-05-13 18:38:03 +02:00
Kay Sievers
172ee4205c libvolume_id: nss - use different uuid 2006-05-12 11:35:57 +02:00
Kay Sievers
7331443248 edd_id: fix "(null)" output if "mbr_signature" does not exist 2006-05-10 17:11:00 +02:00
Marco d'Itri
d7fea966f1 path_id: fix bashism 2006-05-09 18:24:43 +02:00
Libor Klepac
5ac7a25e85 path_id: add platform and serio support 2006-05-09 18:23:20 +02:00
Kay Sievers
674e00f67c vol_id: add NetWare volume detection 2006-05-09 08:46:07 +02:00
Kay Sievers
3d6d12c6b1 vol_id: fix logging from libvolume_id's log function 2006-04-28 17:52:09 +02:00
Hannes Reinecke
b12a1fb1c6 path_id: fix SAS device path generation 2006-04-21 20:02:58 +02:00
Kay Sievers
0c4a805bcc path_id: fix loop for SAS devices 2006-04-13 09:44:07 +02:00
Kay Sievers
485fd28cfa usb_id: remove uneeded code 2006-04-11 19:33:51 +02:00
Kay Sievers
f7dd3a57a4 volume_id: move some debug to info level 2006-04-08 05:04:35 +02:00
Kay Sievers
1017f139b3 volume_id: fix endianess conversion typo for FAT32 2006-04-05 17:31:49 +02:00
Kay Sievers
66e14ae7de fix symlink targets in Makefiles 2006-04-03 14:40:06 +02:00
Kay Sievers
cee5700cde volume_id: generate man page from xml source 2006-03-30 02:13:22 +02:00
Kay Sievers
f05da2ae00 volume_id: update README 2006-03-30 01:52:12 +02:00
Kay Sievers
1fda06ae98 pass CROSS_COMPILE to AR and RANLIB down to extras/ 2006-03-30 00:48:30 +02:00
Kay Sievers
4809b49e41 move all *_id programs to /lib/udev/ 2006-03-29 14:44:41 +02:00
Kay Sievers
16801abde1 man pages: mention udev(7) not udev(8)
Thanks to:
  Henrique de Moraes Holschuh <hmh@debian.org>
2006-03-28 20:16:34 +02:00
Kay Sievers
15ff0ba36e remove all stripping code 2006-03-28 03:09:18 +02:00
Kay Sievers
92da64c700 volume_id: define exported symbols 2006-03-28 02:52:58 +02:00
Kay Sievers
d5618ac969 volume_id: remove some global symbols 2006-03-27 23:03:25 +02:00
Kay Sievers
e688ad2d0d because is better than cause 2006-03-27 20:22:00 +02:00
Kay Sievers
c643d61836 volume_id: use shared library by default 2006-03-27 19:30:56 +02:00
Kay Sievers
83cc6ab476 volume_id: rename subdirectory 2006-03-27 18:05:17 +02:00
Kay Sievers
b5e6942671 volume_id: provide a custom debug function 2006-03-27 17:59:22 +02:00
Kay Sievers
2d82e6f053 volume_id: provide library 2006-03-23 10:50:55 +01:00
Hannes Reinecke
24c27caf82 path_id: add bus to USB path 2006-03-22 12:21:49 +01:00
Kay Sievers
a05098641e fix output for USB path 2006-03-21 17:28:47 +01:00
Kay Sievers
7808297b0f volume_id: remove all partition table support 2006-03-21 16:16:55 +01:00
Hannes Reinecke
10a9bff1c3 persistent links: add scsi tape links and usb path support 2006-03-21 16:10:18 +01:00
Kay Sievers
0eb9e4a87e volume_id: remove partition table parsing code 2006-03-21 16:02:07 +01:00
Kay Sievers
2f567dd62e volume_id: add squashfs detection 2006-03-08 19:44:28 +01:00
Kay Sievers
cdce0be895 remove devfs rules and scripts 2006-03-08 00:34:36 +01:00
Hannes Reinecke
226c074d6d path_id: support SAS devices 2006-03-01 20:07:20 +01:00
Masatake YAMATO
5016ef53f5 typo in debug text in udev_run_hotplugd.c 2006-03-01 20:02:41 +01:00
Kay Sievers
dd8140ae79 volume_id: add missing return 2006-02-21 19:14:43 +01:00
Kay Sievers
ab925d69d5 volume_id: split raid and filesystem detection 2006-02-21 18:48:28 +01:00
Kay Sievers
467546b586 volume_id: replace __packed__ by PACKED macro 2006-02-21 18:44:18 +01:00
Jeroen Roovers
c779c930f1 fix typo in parisc support to path_id
As reported at http://bugs.gentoo.org/show_bug.cgi?id=113379
path_id is still broken for parisc boxes.  This patch from
Jeroen Roovers <jer@gentoo.org> fixes that.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-02-15 21:06:19 +01:00
Kay Sievers
42878445d7 cramfs detection for bigendian
Patch from Olaf Hering <olh@suse.de>.
2006-02-13 06:29:30 +01:00
Kay Sievers
3d94fb8742 scsi_id: remove dead files
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-28 16:42:49 +01:00
Kay Sievers
c1979c82e1 whitespace fixes
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-28 16:39:46 +01:00
Kay Sievers
1ef985452b replace fancy silent build program by simple kernel build like logic
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-28 04:44:51 +01:00
Kay Sievers
f83cccb979 usb_id: don't fail on other subsytems than "scsi"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-23 19:09:17 +01:00
Kay Sievers
aabc6a7294 path_id: handle fiber channel
Patch from: Hannes Reinecke <hare@suse.de>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-23 19:08:06 +01:00
Kay Sievers
fbc5a2b921 path_id: work with "all devices in /sys/devices"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-19 04:54:34 +01:00
Kay Sievers
6ecd4d1e36 scsi_id, usb_id: request device parent by subsystem
Request specific parents identified by subsystem and don't rely on
a predefined sequence.
Also let the devpath be longer than 72 chars, tsss ...

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-18 04:24:48 +01:00
Kay Sievers
e3440f37f0 vol_id: probe volume as user nobody
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-13 13:18:41 +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
47fbf3c582 path_id: fix invalid character class
Thanks to Marco for the _right_ fix.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09 21:17:24 +01:00
Kay Sievers
892532a939 scsi_id: read page 0x80 with libata drives
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-23 00:06:54 +01:00
Kay Sievers
89a8f4e75e fix segfaulting create_floppy_devices
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-15 15:56:50 +01:00
Kurt Garloff
cbba4a5446 support pre-SPC3 page 83 format 2005-12-15 13:01:01 +01:00
Hannes Reinecke
d313632b04 fold multiple consecutive whitespace chars into single '_' 2005-12-15 12:22:42 +01:00
Greg Kroah-Hartman
f3aef1a78e add parisc support to path_id
As reported at http://bugs.gentoo.org/show_bug.cgi?id=113379 path_id
doesn't work too well for parisc boxes.  This patch from Jeroen Roovers
<jer@gentoo.org> fixes that.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-12-07 14:00:05 -08:00
Kay Sievers
a8a614a701 remove outdated and misleading stuff
Packagers who still need this, should carry it in their own
package. It just causes too much trouble to users to have it
in the tree and expect that it's needed or the way to do it.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-25 18:50:42 +01:00
Kay Sievers
e0dc4f00ba move some helpers from extras to /lib/udev
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-22 17:31:38 +01:00
Kay Sievers
cfd0fc6605 libvolume_id: fix weird fat volume recognition
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-21 18:28:56 +01:00
Kay Sievers
d7363ee14c Makefile: remove exec_prefix and srcdir
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16 04:35:37 +01:00
Kay Sievers
88be7e8887 volume_id: use glibc's byteswap
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12 14:28:22 +01:00
Kay Sievers
009364eef9 volume_id: include stddef.h header
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12 04:11:08 +01:00
Kay Sievers
08f403cc37 fix typo in eventrecorder
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-10 04:35:35 +01:00
Kay Sievers
a8d141a3c1 replace udeveventrecorder by a shell script
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-10 02:06:43 +01:00
Greg Kroah-Hartman
f054627f50 Merge branch 'master' of gregkh@master.kernel.org:/pub/scm/linux/hotplug/udev 2005-11-09 09:53:53 -08:00
Greg Kroah-Hartman
54eb6a122f Make run_directory.c stat the place it is going to try to run.
This should remove a lot of error messages that people are seeing.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-11-09 09:53:32 -08:00
Kay Sievers
accff72685 volume_id: provide libvolume_id.a file
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-09 15:08:45 +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
c1bf1edeb7 "STRIPCMD=" for the EXTRAS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28 01:49:22 +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
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
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
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
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
Edward Goggin
50be140174 scsi_id: derive a UID for a SCSI-2 not compliant with the page 83
This patch is to enable the use of scsi_id to derive a UID for a SCSI-2
device which is not compliant with the page 83 inquiry reply format for
either SPC-2 or SPC-3.  In this case, the page 83 reply does not
contain a list of  Identification descriptors but a single binary encoded
hexa-decimal Vendor Specified Identifier.

The update is being driven by the need for scsi_id to support older
model EMC Symmetrix hardware, that is, models 4, 5, and 6.
2005-09-14 20:23:48 +02:00
Kay Sievers
85701baede add install test to 'make buildtest'
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:29:27 +02:00
Kay Sievers
db28d2ea4f EXTRAS: cleanup and sync all Makefiles
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:00:02 +02:00
Kay Sievers
726b21604a volume_id: fix error handling with failing read()
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 14:29:59 +02:00
Jürg Billeter
1ac216b198 EXTRAS/Makefile: fix install targets to match main Makefile 2005-09-14 14:27:28 +02:00
Kay Sievers
852cc0f58d remove chassis_id program
Broken and unmaintained!

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 14:28:59 +02:00
Duncan Sands
609435bad6 firmware_helper: fix write count 2005-09-09 12:38:58 +02:00
Kay Sievers
aab571f362 fix useless but funny name_cdrom.pl script to work again
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 12:24:18 +02:00
Kay Sievers
fc04985839 delete cdromsymlinks* - obsoleted by cdrom_id and IMPORT rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:34:34 +02:00
Kay Sievers
077ed27c55 add edd_id tool to match BIOS EDD disk information
Thanks to:
    John Hull <John_Hull@Dell.com>
    Matt Domsch <Matt_Domsch@Dell.com>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06 12:18:04 +02:00
Kay Sievers
7596a56298 scsi_id: rename SYSFS to LIBSYSFS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 23:36:25 +02:00
Kay Sievers
0e47c219fc Makefile: remove all the duplicated rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 17:03:25 +02:00
Kay Sievers
e79952c598 vol_id: ID_LABEL_SAFE will no longer contain fancy characters
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:16:56 +02:00
Thierry Vignaud
c4ef16f92c switch to '==' in raid-devfs.sh 2005-08-26 14:52:57 +02:00
Kay Sievers
cf7cad9dc9 path_id: remove SUSE specific PATH
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-25 00:40:41 +02:00
Amir Shalem
440103fcfc fix typo in firmware_helper
The wrong string is being nullifed.
2005-08-25 00:39:45 +02:00
Kay Sievers
8d77c6a383 volume_id: don't probe for mac_partition_maps
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-25 00:37:46 +02:00
Kay Sievers
c907c823c3 *_id: fix zero length in set_str()
Thanks to Olaf Hering <olh@suse.de>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-22 11:37:12 +02:00
Kay Sievers
e331c54dc5 fix typo in cdrom_id syslog
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18 04:54:59 +02:00
Kay Sievers
5097a6ca42 Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev 2005-08-18 04:48:43 +02:00
Greg Kroah-Hartman
a961dcbf0d cdrom_id: change err() to info() to help with debugging problems
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17 16:10:32 -07:00
Greg Kroah-Hartman
fc046d4d08 Always open the cdrom drive in non-blocking mode in cdrom_id
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17 16:09:03 -07:00
Kay Sievers
f7a144a5be vol_id: fix sloppy error handling
vol_id segfaults if read() fails on broken devices reporting
the wrong size.

Thanks to Erhard Schultchen for the debugging.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-17 16:58:19 +02:00
Kay Sievers
b5d88a0cfe Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev 2005-08-13 02:16:54 +02:00
Kay Sievers
853ccc433c fix more compiler warnings ...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13 00:18:44 +02:00
Greg Kroah-Hartman
903a36495f added the cdrom.h #defines directly into the cdrom_id.c file
This solves the problem with building the file against old kernel header
files.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-12 11:37:56 -07:00
Greg KH
5a64cea1e1 fix klibc build issue in cdrom_id.c
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 14:38:33 -07:00
Greg KH
8ee99e3279 changed cdrom_id exports to be easier to understand and consistant with other _id programs.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 14:04:24 -07:00
Greg KH
8f6919e639 Created cdrom_id program to make it easier to determine cdrom types
Based on the framework from ata_id by Kay.
Now we can drop the cdsymlinks.sh and .c files

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 13:59:21 -07:00
Kay Sievers
27f877e60f allow logging of all output from executed tools
If USE_DEBUG=true and udev_log="debug", all output of the forked
programs to stdout and stderr is send to syslog.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11 17:32:59 +02:00
Kay Sievers
d47fd445bd trivial text cleanups
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 22:11:44 +02:00
Kay Sievers
a37610d0f8 remove example rules and put the dev.d stuff into the run_directory folder
The distro rules are the best example you can get and the use of
dev.d/ is no longer recommended.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 20:11:26 +02:00
Kay Sievers
6214290df5 more distro rules updates
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 19:17:25 +02:00
Kay Sievers
bebbc31b90 add firmware_helper to load firmware
From: Bill Nottingham <notting@redhat.com>

Changed reading of firmware blob to mmap and let firmware_helper
follow the setting of the log level with UDEV_LOG.
2005-08-09 19:00:37 +02:00
Greg Kroah-Hartman
97b7aa1f78 Added horrible (but fun) path_id script to extras.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01 16:37:41 -07:00
Kay Sievers
70721db6d7 fix GGC signed pointer warnings and switch volume_id to stdint
Solaris uses volume_id now and they fiddled around with configure scripts
to map the linux kernel int types. Adding the types locally to volume_id
breaks the klibc build, so just switch to these ugly types and forget it. :)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 01:33:36 +02:00
Kay Sievers
e8d569b414 move code to its own files
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22 12:35:58 -04:00
Hannes Reinecke
33aa91b1be usb_id: fix typo 2005-07-19 14:36:34 -04:00
Hannes Reinecke
46f01c6dc4 add ID_BUS to *_id programs 2005-07-19 11:18:19 -04:00
Hannes Reinecke
bf375e3af6 create_floppy_devices: add tool to create floppy nodes based on sysfs info 2005-07-19 11:14:12 -04:00
Andre Masella
6a5aac78f4 volume_id: add OCFS (Oracle Cluster File System) support 2005-07-17 09:54:40 -04:00
Kay Sievers
422d5becc3 add padding to rules structure
Some architectures really want well alingned structures.
Thanks to Jim Gifford <maillist@jg555.com> for help finding it.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-17 09:40:29 -04:00
Greg KH
04b90b7e25 Really commit the udev_run_devd changes... 2005-07-14 15:24:59 -07:00
Greg KH
78e21e3ed4 Fixed udev_run_devd to run the /etc/dev.d/DEVNAME/ files too
Note, this assumes that you are putting your device nodes in /dev/, the
better thing to do is use the RUN= rule and not rely on this program at all.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14 15:19:37 -07:00
Kay Sievers
b0f57eb066 volume_id: remove s390 dasd handling, it is dasd_id now
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 12:01:53 +02:00
Hannes Reinecke
15e5209b8e dasd_id: add s390 disk-label prober
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-13 11:35:51 +02:00
Kay Sievers
5f84d7264d trivial fixes for *_id programs
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 11:23:21 +02:00
Kay Sievers
e03bce6321 ata_id: check for empty serial number
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:41:09 +02:00
Kay Sievers
4431072fb8 compile dasd only on s390
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:39:56 +02:00