Kay Sievers
b467444884
usb_id: MassStorage SubClass 6 is "scsi" not "disk"
2008-11-05 19:02:56 +01:00
Kay Sievers
0d5076dd92
volume_id: btrfs update
2008-11-05 02:22:07 +01:00
Kay Sievers
a0e17034ee
firmware.sh: record missing files in /dev/.udev/firmware-missing/
2008-11-04 18:38:06 +01:00
Kay Sievers
bf18270222
fstab_import: add "change" event match
2008-10-30 16:41:47 +01:00
Kay Sievers
11ddcbf7b4
edd_id: add "change" event match
2008-10-30 16:41:27 +01:00
Kay Sievers
1822e9b033
do not init string arrays, just clear first byte
2008-10-26 02:31:54 +01:00
Kay Sievers
f6bb9e981a
fix uninitialized variable warnings
2008-10-24 09:37:37 +02:00
Kay Sievers
9bdca442ef
rule_generator: fix netif NAME= value extraction regex
...
$ sed -n -r \
-e 's/^#.*//' \
-e 's/[[:space:],]NAME="(eth[0-9]*)"[[:space:]]*(,.*|\\|)$/\1/p' \
/dev/null /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:41:e2:8d:c7", ATTR{type}=="1", KERNEL=="eth*",eth4
$ sed -n -r \
-e 's/^#.*//' \
-e 's/.*[[:space:],]NAME="(eth[0-9]*)".*/\1/p' \
/dev/null /etc/udev/rules.d/70-persistent-net.rules
eth4
2008-10-23 15:44:34 +02:00
Kay Sievers
14f4025607
add util_resolve_subsys_kernel()
2008-10-22 18:03:38 +02:00
Matthias Koenig
fcd070d010
volume_id: swap - larger PAGE_SIZE support
2008-10-22 11:45:27 +02:00
Alan Jenkins
111e4f81ff
replace strncpy() with strlcpy()
...
The problem was strncpy() doesn't stop after writing the terminating
NUL; by definition it goes on to zero the entire buffer.
I spy another use of strncpy in udev_device_add_property_from_string(),
which is responsible for another ~1% user cpu time...
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 23:55:13 +02:00
Alan Jenkins
b29a5e4ab9
use more appropriate alternatives to malloc()
...
Use calloc to request cleared memory instead.
Kernel and libc conspire to make this more efficient.
Also, replace one malloc() + strcpy() with strdup().
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 12:54:57 +02:00
Kay Sievers
e02d738ee4
cdrom_id: remove ARRAY_SIZE() declaration
2008-10-21 12:40:47 +02:00
Kay Sievers
69239210be
libudev: device - get_attr_value() -> get_sysattr_value()
2008-10-20 18:12:36 +02:00
Kay Sievers
2d9a1b1ef2
pass make distcheck
2008-10-18 20:33:06 +02:00
Kay Sievers
54808d77a3
prefix udev-util.c functions with util_*
2008-10-18 20:12:55 +02:00
Kay Sievers
002a957762
collect: use udev_list
2008-10-17 19:29:02 +02:00
Kay Sievers
8460299b57
rename udev source files
2008-10-16 18:13:48 +02:00
Kay Sievers
d56f94d168
volume_id: btrfs - update magic to latest disk format
2008-10-16 17:10:47 +02:00
Kay Sievers
f183b6ed76
libudev: add global property list
2008-10-16 13:51:29 +02:00
Kay Sievers
f4700eb8a0
vol_id: update README
2008-10-13 03:34:37 +02:00
Steven Whitehouse
2f66462982
volume_id: support for GFS2 UUIDs
2008-10-13 03:23:31 +02:00
Kay Sievers
6a328058e0
volume_id: more fat debugging
2008-10-06 18:17:05 +02:00
Kay Sievers
3cbc96e3be
volume_id: add more vfat debugging information
2008-10-06 12:17:47 +02:00
Kay Sievers
0565a00a4c
volume_id: use PRIu64i, PRIx64 macros
2008-10-03 18:24:04 +02:00
Kay Sievers
99370c2152
volume_id: add btrfs
2008-10-03 17:23:12 +02:00
Kay Sievers
59315eeae4
volume_id: better DDF raid detection
2008-10-03 15:01:39 +02:00
Kay Sievers
ab7430c5d8
vol_id: always use the safe string versions for unencoded label and uuid
2008-10-03 14:58:02 +02:00
Kay Sievers
d4f687c013
vol_id: fix logging glue
2008-10-03 14:56:54 +02:00
Kay Sievers
3ab8ebf572
volume_id: add dbg() as noop to check for compile errors
2008-10-03 14:50:57 +02:00
Kay Sievers
7744e869ec
move selinux noops to udev.h
2008-10-03 14:49:29 +02:00
Kay Sievers
22c89d3fd7
vol_id: add size= option
2008-10-03 11:42:47 +02:00
Kay Sievers
2f1a291e2f
usb_id: use libudev
2008-10-02 21:20:18 +02:00
Kay Sievers
e598c5738c
libudev: get rid of selinux
...
"Hello world!" linked against libselinux parses /proc/mounts and
whatever else on startup, even when the lib is not needed at all.
Not funny! Get rid of that thing where it's not absolutely needed.
2008-10-02 18:48:40 +02:00
Kay Sievers
033e9f8cde
use no_argument, required_argument, optional_argument in longopts
2008-10-02 16:49:05 +02:00
Kay Sievers
842dacb76f
volume_id: hpfs - read label and uuid
2008-10-02 15:16:11 +02:00
Kay Sievers
4dea370d49
build: include Makefile.am.inc in all Makefile.am
...
Many thanks to Chris Spiegel for finding the still current vol_id
non-large-file-access bug, because of not including config.h.
2008-10-01 18:02:39 +02:00
Kay Sievers
4aa0b15efb
fix dbg() callers
2008-09-29 19:03:08 +02:00
Kay Sievers
d0f398bc25
gitignore: move *.8 to subdirs
2008-09-29 05:03:43 +02:00
Kay Sievers
e345e2670a
libudev: rework list handling
2008-09-26 19:44:53 +02:00
Kay Sievers
38f27948cd
always include config.h from Makefile
2008-09-19 23:03:49 -07:00
Alan Jenkins
a4354f9385
scsi_id: compiler warning on 32-bit
...
The sg_io_v4 interface passes pointers as u64s. It turns out GCC
disapproves of us casting a u64 straight to a 32 bit pointer.
cc1: warnings being treated as errors
scsi_serial.c: In function ‘sg_err_category4’:
scsi_serial.c:159: warning: cast to pointer from integer of different size
scsi_serial.c: In function ‘scsi_dump_v4’:
scsi_serial.c:303: warning: cast to pointer from integer of different size
2008-09-19 22:14:46 -07:00
Kay Sievers
c68a293678
vol_id: fix lib logging glue
2008-09-16 00:40:47 -07:00
Kay Sievers
17fcfb5972
use size definitions from libudev
2008-09-10 21:50:21 +02:00
Kay Sievers
31c1f53745
get rid of udev_sysdeps.c
2008-09-10 18:59:42 +02:00
Kay Sievers
ecc9ec579f
convert to libudev and delete udev_utils_string.c
2008-09-10 18:39:23 +02:00
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