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

156 Commits

Author SHA1 Message Date
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
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
Kay Sievers
7808297b0f volume_id: remove all partition table support 2006-03-21 16:16:55 +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
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
Kay Sievers
42878445d7 cramfs detection for bigendian
Patch from Olaf Hering <olh@suse.de>.
2006-02-13 06:29:30 +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
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
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
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
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
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
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
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
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
853ccc433c fix more compiler warnings ...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13 00:18:44 +02: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
Hannes Reinecke
33aa91b1be usb_id: fix typo 2005-07-19 14:36:34 -04:00
Andre Masella
6a5aac78f4 volume_id: add OCFS (Oracle Cluster File System) support 2005-07-17 09:54:40 -04: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
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
4431072fb8 compile dasd only on s390
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:39:56 +02:00
Kay Sievers
b8476286d6 store the imported device information in the udevdb
Any program can query with udevinfo for persistent device
attributes evaluated on device discovery now.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26 18:55:24 +02:00
Kay Sievers
208f6aba21 rename udev_volume_id to vol_id and add --export option
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26 01:54:47 +02:00
Kay Sievers
c2401132bf volume_id: use udev-provided log-level
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 05:17:21 +02:00
kay.sievers@vrfy.org
5160379804 [PATCH] udev_volume_id: fix endianess macros 2005-04-26 23:55:00 -07:00
kay.sievers@vrfy.org
92ebb398ed [PATCH] klibc: use klcc wrapper instead of our own Makefile 2005-04-26 23:53:53 -07:00
kay.sievers@vrfy.org
7d227c5f34 [PATCH] volume_id: version 43 2005-04-26 23:53:53 -07:00
hare@suse.de
cc44094d63 [PATCH] volume_id: Fix label/uuid reading for reiserfs
Well, I just asked our resident reiserfs guru (thx mason :-).
Reiser v3.5 does not support labels nor uuids.
2005-04-26 23:53:18 -07:00
kay.sievers@vrfy.org
afa3c553b1 [PATCH] volume_id: version 42 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org
7c492da7f7 [PATCH] volume_id: version 41 2005-04-26 23:53:17 -07:00
tklauser@access.unizh.ch
9066c16ada [PATCH] The following patch fixes some warnings when compiling volume_id 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org
138068d690 [PATCH] fix ia64 compile 2005-04-26 23:51:00 -07:00
kay.sievers@vrfy.org
845d4751ac [PATCH] udev_volume_id: version 39 2005-04-26 23:51:00 -07:00
kay.sievers@vrfy.org
6c18b1fb87 [PATCH] rename LOG to USE_LOG in all places 2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org
30c6b4c9a2 [PATCH] udev_volume_id: volume_id v38 2005-04-26 23:48:48 -07:00
tklauser@access.unizh.ch
8d1b4df219 [PATCH] udev_volume_id: add Reiser4 support 2005-04-26 23:36:13 -07:00
kay.sievers@vrfy.org
e4d4a557e5 [PATCH] udev_volume_id: volume_id v35 2005-04-26 23:36:13 -07:00
kay.sievers@vrfy.org
d384abd2bd [PATCH] udev_volume_id: fix typo 2005-04-26 23:34:04 -07:00
kay.sievers@vrfy.org
27753a3cf7 [PATCH] udev_volume_id: remove temporary node creation and parent handling
udev can create the temporary node for us now. (On bootup we don't
know where a writable filesystem is mounted). Also the parent handling
is not needed anymore, cause udev is able to pass us the node name
of the parent device.
2005-04-26 23:31:05 -07:00
kay.sievers@vrfy.org
866bb54704 [PATCH] udev_volume_id: remove __packed__ from dasd structure as it does not work 2005-04-26 23:31:02 -07:00
kay.sievers@vrfy.org
bce52be81e [PATCH] udev_volume_id: fix dasd disklabel reading with -l option 2005-04-26 23:27:03 -07:00
kay.sievers@vrfy.org
9d4791b66a [PATCH] udev_volume_id: volume_id version 034 2005-04-26 23:26:14 -07:00
kay.sievers@vrfy.org
d9cf0b0a7c [PATCH] udev_volume_id: rename probe_ibm into probe_dasd 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org
7979e3d4b7 [PATCH] udev_volume_id: volume_id version 032 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org
51df9ee496 [PATCH] Makefile: add some more warnings and prepare for clean gcc4 compile 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org
c033fd9f01 [PATCH] udev_volume_id: new version of volume_id
Every filesystem has its own subdirectory.
The IBM dasd label reading is included into volume_id.
2005-04-26 23:24:19 -07:00
cborntra@de.ibm.com
61b24e5e19 [PATCH] udev_volume_id: fix -d option
The -d option in udev_allows to go from a partition to the underlying disk
for s390 dasd labels. If the device is already the disk itself, finding the 
parent will fail, therefore -d on /sys/block/dasda/ for example gives no 
result at all.
2005-04-26 23:21:58 -07:00
kay.sievers@vrfy.org
eb064000ca [PATCH] udev_volume_id: fix FAT label reading 2005-04-26 23:21:58 -07:00
kay.sievers@vrfy.org
240ce55179 [PATCH] udev_volume_id: version 27
Fix FAT label reading bug for very large volumes.
Recognize FAT label at Win98 formatted volumes.
Read iso9660 joliet descriptor for unicode labels.
Support uuid/label of swap partitions.
2005-04-26 23:21:58 -07:00
greg@kroah.com
ce5c75b8e1 [PATCH] fix udev_volume_id build error.
bah, when will I remember to check the extras _before_ I do a release...
2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org
c2fe814e30 [PATCH] udev_volume_id: links sysfs.a instead of all objects
cuts down the size from:
  dynamically linked: 48.030 -> 45.187
  statically linked:  149.177 ->  142.362
2005-04-26 23:13:47 -07:00
greg@kroah.com
c93053663f [PATCH] fix udev_volume_id so it will now build properly. 2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
a5d00f9d37 [PATCH] Add support for highpoint ataraid to volume_id to suppress 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org
a9ce604122 [PATCH] Patches from Harald Hoyer <harald@redhat.com>. 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org
ff694eca17 [PATCH] fix debug in volume id / fix clashing global var name
Here we get the logging for udev_volume_id working if it is compiled
with DEBUG=true. Also fixed is a name clash with a global variable.
2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org
1b1ba93365 [PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
2005-04-26 22:06:43 -07:00
greg@kroah.com
396bb4c3d3 [PATCH] let the extras/ programs build "pretty" also 2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org
33eae955e2 [PATCH] update volume_id
Here is an update to the latest volume_id which fixes a few bugs with
FAT volumes.
2005-04-26 21:37:03 -07:00