hal/hald/linux/volume_id volume_id.c, 1.45, 1.45.2.1 volume_id.h,
1.23, 1.23.2.1
David Zeuthen
david at freedesktop.org
Mon Nov 22 13:53:52 PST 2004
Update of /cvs/hal/hal/hald/linux/volume_id
In directory gabe:/tmp/cvs-serv19436/hald/linux/volume_id
Modified Files:
Tag: hal-0_4-stable-branch
volume_id.c volume_id.h
Log Message:
2004-11-22 David Zeuthen <david at fubar.dk>
* hald/linux/volume_id/volume_id.c (volume_id_probe): Add some
logging of what size we call volume_id_probe with
* hald/linux/block_class_device.c (force_unmount): Only attempt to
'umount -l' if some hal policy piece are performing policy on the
device
2004-11-22 David Zeuthen <davidz at redhat.com>
* libhal-storage/libhal-storage.c (hal_drive_from_udi): Detect Zip
and Jaz drives
(hal_drive_policy_compute_display_name): Fix an ugly bug where
CD-ROM drives were being named "CD-R" instead of "CD-ROM"
* libhal-storage/libhal-storage.h: Add enums for Zip and Jaz drives
* hald/linux/platform_bus_device.c (platform_device_in_gdl): New
function. Actually check the /etc/mtab for whether the floppy is
mounted
* hald/linux/common.h: Add prototype for
etc_mtab_process_all_block_devices
* hald/linux/block_class_device.c (block_class_visit): Never add
child real childs (e.g. /dev/hdd4) if storage.no_partitions_hint is
set (for IDE Zip Drives)
(detect_media): Actually set child to what we find in the TDL
(mtab_handle_storage): Match on device file before attempting to
match on major/minor
(mtab_handle_volume): -do-
* hald/device_info.c (handle_match): Add the contains and
contains_ncase matching operators.
* fdi/90defaultpolicy/storage-policy.fdi: Add some policy pieces for
IDE Zip, Jaz and USB Zip drives
* fdi/20freedesktop/usb-zip-drives.fdi: New file to identify USB
Zip Drives
* fdi/20freedesktop/ide-drives.fdi: New file to identify strange IDE
drives such as Zip and Jaz drives; note that rewriting the device
file from e.g. /dev/hdd to /dev/hdd4 is actually sane enough to
do given the abstraction that hal exports :-)
2004-11-16 David Zeuthen <davidz at redhat.com>
* fdi/90defaultpolicy/storage-policy.fdi: Remove the "ro" option for
optical drives as it prevents mounting rw DVD-RAM media (RH bug #139600)
* hald/linux/volume_id/volume_id.h (VOLUME_ID_PARTITIONS_MAX): Increase
to 256 (RH bug #139227)
* hald/linux/volume_id/volume_id.c (probe_msdos_part_table): Fix a
typo ("to many partitions" -> "too many partitions"
(volume_id_probe): Do not probe for msdos_part_table since that doesn't
make sense (../block_class_device.c does that instead)
Index: volume_id.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/volume_id/volume_id.c,v
retrieving revision 1.45
retrieving revision 1.45.2.1
diff -u -d -r1.45 -r1.45.2.1
--- volume_id.c 25 Oct 2004 16:32:10 -0000 1.45
+++ volume_id.c 22 Nov 2004 21:53:50 -0000 1.45.2.1
@@ -571,7 +571,7 @@
p->partition_type_raw = part[i].sys_ind;
if (id->partition_count >= VOLUME_ID_PARTITIONS_MAX) {
- dbg("to many partitions");
+ dbg("too many partitions");
next = 0;
}
}
@@ -2014,6 +2014,8 @@
{
int rc;
+ dbg("called with size=0x%llx", size);
+
if (id == NULL)
return -EINVAL;
@@ -2088,9 +2090,6 @@
break;
/* signature in the first block, only small buffer needed */
- rc = probe_msdos_part_table(id, off);
- if (rc == 0)
- break;
rc = probe_vfat(id, off);
if (rc == 0)
break;
Index: volume_id.h
===================================================================
RCS file: /cvs/hal/hal/hald/linux/volume_id/volume_id.h,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -d -r1.23 -r1.23.2.1
--- volume_id.h 25 Oct 2004 02:57:27 -0000 1.23
+++ volume_id.h 22 Nov 2004 21:53:50 -0000 1.23.2.1
@@ -28,7 +28,7 @@
#define VOLUME_ID_UUID_STRING_SIZE 37
#define VOLUME_ID_FORMAT_SIZE 32
#define VOLUME_ID_PATH_MAX 256
-#define VOLUME_ID_PARTITIONS_MAX 16
+#define VOLUME_ID_PARTITIONS_MAX 256
enum volume_id_usage {
VOLUME_ID_UNUSED,
More information about the hal-commit
mailing list