Skip to contentSkip to conversation

update udev_volume_id

PATCH New Kay Sievers 1 participant 1 message Aug 30, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update udev_volume_id

Here is an update for the volume_id callout to catch up to the latest and greatest:

o It is able to skip the label reading of linux raid members, which are otherwise recognized as a normal filesystem.

o It reads FAT labels stored in the directory instead of the superblock (Windows only writes in the directory).

o The NTFS uuid is the right one now.

o It reads all the Apple HFS(+) formats with the labels.

o UFS volumes are recognized but no labels are extracted.

o We use CFLAGS+=-D_FILE_OFFSET_BITS=64 instead of lsee64() which may fix a bug mentioned on the klibc mailing list.

A lot of other new features are only used in HAL and not needed in this simple callout. But if someone stumbles over it and want's to send a patch for some exotic formats, we better keep it up to date :)

Thanks,
Kay

===== extras/volume_id/Makefile 1.2 vs edited =====

extras/volume_id/Makefile +5 -1
@@ -28,7 +28,11 @@ INSTALL_PROGRAM = ${INSTALL}
 INSTALL_DATA  = ${INSTALL} -m 644
 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
 
-override CFLAGS+=-Wall -fno-builtin
+override CFLAGS+=-Wall -fno-builtin -Wchar-subscripts -Wmissing-declarations \
+		 -Wnested-externs -Wpointer-arith -Wcast-align \
+		 -Wsign-compare
+
+override CFLAGS+=-D_FILE_OFFSET_BITS=64
 
 SYSFS =	../../libsysfs/sysfs_bus.o	\
 	../../libsysfs/sysfs_class.o	\

===== extras/volume_id/udev_volume_id.c 1.2 vs edited =====

extras/volume_id/udev_volume_id.c +59 -21

162 lines not on this page · raw message

===== extras/volume_id/volume_id.c 1.4 vs edited =====

extras/volume_id/volume_id.c +1312 -240

1,971 lines not on this page · raw message

===== extras/volume_id/volume_id.h 1.3 vs edited =====

extras/volume_id/volume_id.h +53 -22

102 lines not on this page · raw message