hal/hald/linux2 blockdev.c,1.19,1.20

David Zeuthen david at freedesktop.org
Wed Jul 27 17:55:11 PDT 2005


Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv13571/hald/linux2

Modified Files:
	blockdev.c 
Log Message:
2005-07-27  David Zeuthen  <davidz at redhat.com>

        * tools/hal-luks-remove.in: Unmount the cleartext volume, if mounted,
        before tearing down the dm-crypt mapping

        * hald/linux2/blockdev.c (hotplug_event_begin_remove_blockdev):
        Actually read the is_partition from the device since e.g.
        /sys/block/dm-0 probably is a partition

2005-07-26  W. Michael Petullo  <mike at flyn.org>

        * tools/hal_set_property.c: Add --strlist-pre, --strlist-post
        and --strlist-rem options to hal-set-property

        * tools/hal-luks-setup.in: Use --strlist-pre to add hal-luks-remove to
        a LUKS device's info.callouts.remove.

        * tools/hal-luks-remove.in: New script to tear down dm-crypt
        device.



Index: blockdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/blockdev.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- blockdev.c	20 Jul 2005 23:43:19 -0000	1.19
+++ blockdev.c	28 Jul 2005 00:55:09 -0000	1.20
@@ -1053,6 +1053,8 @@
 		HalDevice *stor_dev;
 		gboolean is_fakevolume;
 
+		is_partition = hal_device_property_get_bool (d, "volume.is_partition");
+
 		if (strcmp (hal_util_get_last_element (sysfs_path), "fakevolume") == 0)
 			is_fakevolume = TRUE;
 		else




More information about the hal-commit mailing list