Kay Sievers
7525097713
extras: use libudev code
2008-09-10 18:24:39 +02:00
Kay Sievers
3eb46ec6dd
libudev: do not use any udev source file
2008-09-10 18:00:31 +02:00
Kay Sievers
b2946df419
libudev: rename libudev-utils.c libudev-util.c
2008-09-10 17:12:33 +02:00
Kay Sievers
7a01f11afb
libudev: get rid of udev_utils.c
2008-09-10 17:08:24 +02:00
Kay Sievers
b21b95d722
libudev: get rid of udev_sysfs.c
2008-09-10 14:29:07 +02:00
Kay Sievers
55e9959b15
update file headers
2008-09-10 02:40:42 +02:00
Kay Sievers
ef5c2d048c
volume_id: merge util.h in libvolume_id-private.h
2008-09-10 02:31:11 +02:00
Kay Sievers
4f4b12c203
libudev: add selinux
2008-09-10 00:46:17 +02:00
Kay Sievers
e5931bb7d8
udevadm: add --version --help options to man page, hide them as commands
2008-09-07 14:48:33 +02:00
Kay Sievers
f640b32fdd
vol_id: add --debug option
2008-09-06 16:37:00 +02:00
Kay Sievers
7643819062
volume_id: linux_raid - fix logic for volumes with size == 0
2008-09-06 16:23:21 +02:00
Kay Sievers
7d563a17f3
use libudev code, unify logging, pass udev context around everywhere
2008-09-06 15:45:31 +02:00
Kay Sievers
c2175d2524
volume_id: fail on undefined __BYTE_ORDER
2008-09-01 16:39:34 +02:00
Kay Sievers
ac877d7cf4
volume_id: hfs - calculate proper uuid
2008-08-31 12:20:24 +02:00
Kay Sievers
2bb9f412bc
firmware.sh: lookup lookup kernel provided firmware directory
2008-08-29 21:00:43 +02:00
Kay Sievers
550d5c2879
volume_id: remove left-over fd close()
2008-08-29 17:06:08 +02:00
Kay Sievers
2603474ff9
volume_id: remove deprecated functions and bump major version
2008-08-28 23:39:41 +02:00
Kay Sievers
f46a8a98a7
vol_id: make the --offset= argument optional
2008-08-22 10:04:55 +02:00
Kay Sievers
b7ec267e17
add missing includes
2008-08-12 11:18:39 +02:00
Kay Sievers
4337f8fcf1
volume_id: create relative links
2008-07-30 15:50:12 +02:00
Kay Sievers
4cf46e2c02
volume_id: move static lib to $prefix
2008-07-30 14:45:43 +02:00
Kay Sievers
01618658fd
use autotools
2008-07-30 01:45:23 +02:00
Kay Sievers
726687ad48
delete all Makefiles and move udev source to udev/
2008-07-30 00:39:15 +02:00
Thomas Koeller
aa5e29a581
use proper directory lib/lib64 for libvolume_id
2008-07-22 15:57:40 +02:00
Kay Sievers
282988c4f8
move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/
...
None of these rules is supposed to be changed by users, so move
them out of /etc. Custom rules, and automatically generated rules
stay in /etc. All rules are still processed in lexical order,
regardless which directory they live in.
2008-07-18 15:56:03 +02:00
Kay Sievers
05364975af
scsi_id: the fallback fix broke error handling
2008-07-10 22:22:10 +02:00
Marco d'Itri
52b375bc3b
scsi_id: man page fix
...
minus signs need to be escaped and the program is not in the $PATH anymore
2008-07-10 00:17:24 +02:00
Thomas Koeller
629e57e0d4
scsi_id: include sys/stat.h
...
I could not build scsi_id because of a missing #include
for sys/stat.h, so I had to add that.
Signed-off-by: Thomas Koeller <thomas@koeller.dyndns.org>
2008-07-10 00:08:32 +02:00
Marco d'Itri
03effd3bc9
rules_generator: net rules - do not print error if file is missing and ignore commented rules
...
Fix an error message displayed by write_net_rules when the rules file
does not exist yet. (See Debian bugs #442796 and #475699.)
Ignore commented rules, at least for the easy case.
For clarity, use extended instead of standard regular expressions.
2008-07-07 14:32:33 +02:00
Kay Sievers
24dabba541
scsi_id: fix fallback to sg v3 for sg nodes
2008-07-07 11:18:49 +02:00
Kay Sievers
dad1f0924b
path_id: suppress trailing '-' like 'ID_PATH=pci-0000:05:01.0-'
2008-06-26 13:25:31 +02:00
Kay Sievers
7c389ce8a0
collect: fix size_t printf
2008-06-18 10:12:14 +02:00
Tobias Klauser
322fc7a636
collect: check realloc return value
2008-06-18 10:10:29 +02:00
Kay Sievers
9bbdf6eb3c
cdrom_id: fix recognition of blank media
...
Thanks to David!
2008-06-12 07:20:14 +02:00
Kay Sievers
2c0644c1c2
release 123
2008-06-12 00:08:43 +02:00
Erik van Konijnenburg
0c6ecdfd9f
volume_id: support for oracleasm
2008-06-11 23:54:56 +02:00
Harald Hoyer
1ecb086460
scsi_id: retry open() on -EBUSY
2008-06-11 23:26:18 +02:00
Kay Sievers
ec404619a6
cdrom_id: export ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=, ID_CDROM_MEDIA_TRACK_COUNT_DATA=
...
Iterate over all tracks, instead of looking only at the first
one for audio. Thanks to David!
2008-06-11 23:24:13 +02:00
Karel Zak
2f2f54c514
volume_id: enable GFS probing code, add LABEL support
...
* enables GFS/GFS2 probing code (it's disabled now!)
* adds support for LABELs -- it seems that locktable name is usable as
a LABEL (at least according to libblkid).
* removes extra check of sb_header.mh_format -- nothing in kernel and
blkid checks this superblock entry. It seems that check GFS_MAGIC and
GFS_METATYPE_SB is enough.
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-28 20:07:17 +02:00
Xinwei Hu
b5254b4203
collect: realloc buffer, if needed
2008-05-27 19:35:03 +02:00
Karel Zak
2aae673c96
volume_id: remove unnecessary global variable
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-27 01:41:41 +02:00
Kay Sievers
941d40a074
rules: persistent net - handle "locally administered" ibmveth MAC addresses
2008-05-26 17:11:13 +02:00
Kay Sievers
bc44071db2
edd_id: call it only for sd* and hd*
2008-05-20 08:46:29 +02:00
Kay Sievers
7031a67c95
volume_id: bump version
2008-05-17 16:19:12 +02:00
Kay Sievers
53ba69a0c2
scsi_id: add bsg.h
2008-05-16 12:52:42 +02:00
Matthias Schwarzott
4cd71da560
cdrom_id: fix segfault
2008-05-14 16:03:49 +02:00
Kay Sievers
025570aa3e
scsi_id: add --sg-version= option
2008-05-14 15:02:17 +02:00
Kay Sievers
2d05764a77
scsi_id: remove bus_id option
2008-05-14 13:59:25 +02:00
Kay Sievers
138cf75e4e
scsi_id: update man page
2008-05-14 13:59:11 +02:00
Hannes Reinecke
78d9ecfd4f
scsi_id: add SGv4 support
...
Fall back to SGv3, if SGv3 returns a failure/is not available.
2008-05-14 13:55:49 +02:00
Hannes Reinecke
753417db2b
scsi_id: remove all sysfs dependencies
2008-05-14 13:42:41 +02:00
MUNEDA Takahiro
838436fa32
man: scsi_id
2008-05-14 04:47:33 +02:00
Karel Zak
661a0bea80
volume_id: clean up linux_raid code
...
extra global and/or non-static variables suck in shared libraries
use "else if" rather than many "return" calls
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-13 11:29:17 +02:00
David Woodhouse
8b6e9f287d
rules_generator: net rules - add "dev_id" value to generated rules
2008-04-27 20:19:44 +02:00
Kay Sievers
d8a9d01704
udevadm: control - fix --env key to accept --env=<KEY>=<value>
2008-04-22 03:19:21 +02:00
Kay Sievers
6b795c99e0
fstab_import: add program to IMPORT matching fstab entry
...
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda6
SUBSYSTEM=block
...
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
...
FSTAB_NAME=/dev/disk/by-id/scsi-SATA_ST910021AS_3MH0Y3KF-part6
FSTAB_DIR=/home/kay/work
FSTAB_TYPE=ext3
FSTAB_OPTS=defaults
FSTAB_FREQ=1
FSTAB_PASSNO=1
2008-04-21 18:07:05 +02:00
Kay Sievers
953080abd9
cdrom_id: add more help text
2008-04-21 17:41:39 +02:00
Damjan Georgievski
be9c76b434
libvolume_id: recognize swap partitions with a tuxonice hibernate image
2008-04-21 12:44:25 +02:00
Kay Sievers
803ac7a6d8
scsi_id: initialize serial strings
2008-04-20 21:08:45 +02:00
Kay Sievers
c70560feef
logging: add trailing newline to all strings
2008-04-20 21:07:06 +02:00
Kay Sievers
1d918b50cd
path_id: remove subsystem whitelist
2008-04-18 21:08:07 +02:00
Kay Sievers
e6d70ed63a
rules_generator: net rules - always add KERNEL== match to generated rules
2008-04-15 00:21:51 +02:00
Kay Sievers
fd7a285e62
cdrom_id: replace with version which also exports media properties
...
This is a 12 track audio CD with additional data session:
$ extras/cdrom_id/cdrom_id /dev/dvd
ID_CDROM=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_R=1
ID_CDROM_DVD_RW=1
ID_CDROM_DVD_RAM=1
ID_CDROM_DVD_PLUS_R=1
ID_CDROM_DVD_PLUS_RW=1
ID_CDROM_DVD_PLUS_R_DL=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_MEDIA_STATE=complete
ID_CDROM_MEDIA_HAS_AUDIO=1
ID_CDROM_MEDIA_SESSION_COUNT=2
ID_CDROM_MEDIA_TRACK_COUNT=13
ID_CDROM_MEDIA_SESSION_LAST_OFFSET=444508160
2008-04-09 23:17:39 +02:00
Kay Sievers
8b5238670d
vol_id: add --offset option
2008-04-09 12:35:03 +02:00
Roy Marples
064360cde8
Makefile: do not require GNU install
2008-03-15 00:02:39 +01:00
Kay Sievers
9138bcba99
rules_generator: add KERNEL=="<netifname>*" to generated rules
...
Some boxes, like the PS3, have multiple independent hardware
interfaces, all sharing the same MAC address. If they have
different interface names base names, we can distinguish them
that way.
2008-03-13 16:31:14 +01:00
Matthias Schwarzott
44d01dced1
volume_id: respect LDFLAGS
2008-02-21 12:28:45 +01:00
Kay Sievers
3f91a27d16
volume_id: update ext detection
2008-02-09 12:17:32 +01:00
Karel Zak
bf79d61233
volume_id: fix typo in function documentation
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-24 01:12:33 +01:00
Neil Williams
a141b43506
volume_id: add prefix=, exec_prefix=
2008-01-09 22:36:36 +01:00
Karel Zak
1b4f9b167b
volume_id: fix UUID raw buffer usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-09 16:15:07 +01:00
Jiri Slaby
6e509e539b
rules_generator: add missing write_net_rules unlock
2007-12-31 14:24:55 +01:00
Kay Sievers
73ff769c90
volume_id: also add readable check to probe_all()
...
Otherwise probe_all will run two times into a timout, one
for the raid, and one for the filesystem probe. Thanks to
Tore Anderson for the debugging.
2007-12-17 15:32:41 +01:00
Kay Sievers
be580fa5d8
create_floppy_devices: fix logic for more than one floppy device
2007-12-17 03:41:30 +01:00
Kay Sievers
2bb4dd9766
volume_id: run only once into a timeout for unreadable devices
2007-12-16 19:56:04 +01:00
Hannes Reinecke
5caa40bea2
volume_id: LVM - add uuid
2007-12-16 19:22:32 +01:00
Kay Sievers
9e5920842b
volume_id: md - add metadata minor version
...
Thanks to Hannes.
2007-12-07 17:26:15 +01:00
Kay Sievers
1e8b8e564c
libvolume_id: squashfs - add endianess support for LZMA compression
2007-11-26 01:09:03 +01:00
Michael Prokop
d7515c7bb9
libvolume_id: squashfs+LZMA compression detection
2007-11-26 01:03:08 +01:00
Kay Sievers
c8ee8f983f
rules_generator: do not create rules with insufficient matches
...
Thanks to Alexander E. Patrakov for pointing out that we create
invalid rules.
We still need a proper fix for devices we skip creating rules
(locally administered MAC), but want to swap names with interface
names we created rules for.
2007-11-20 18:18:03 +01:00
Dan Nicholson
01ac7d96fa
volume_id: create relative symlink when $(libdir) = $(usrlibdir)
2007-11-08 00:14:39 +01:00
Dan Nicholson
c8e826147a
extras: ignore built and generated files
2007-11-08 00:13:40 +01:00
Kay Sievers
f1bc0fdb0f
volume_id: bump version
2007-10-24 16:51:03 +02:00
Kay Sievers
02ee0e3312
volume_id: ntfs - rely on valid master file table
2007-10-23 02:38:23 +02:00
Kay Sievers
74534dbde8
volume_id: LUKS - export version
2007-10-17 18:13:49 +02:00
Kay Sievers
424520043a
volume_id: vfat - allow all possible sector sizes
...
https://bugs.launchpad.net/bugs/147807
2007-10-17 17:59:27 +02:00
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