Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 286046
Collapse All | Expand All

(-)./hald/linux/blockdev.c.orig (-2 / +2 lines)
Lines 1394-1400 Link Here
1394
		hal_device_property_set_bool (d, "volume.linux.is_device_mapper", is_device_mapper);
1394
		hal_device_property_set_bool (d, "volume.linux.is_device_mapper", is_device_mapper);
1395
		hal_device_property_set_bool (
1395
		hal_device_property_set_bool (
1396
			d, "volume.is_disc", 
1396
			d, "volume.is_disc", 
1397
			strcmp (hal_device_property_get_string (parent, "storage.drive_type"), "cdrom") == 0);
1397
			strcmp (hal_device_property_get_string (parent, "storage.drive_type") ? : "", "cdrom") == 0);
1398
1398
1399
1399
1400
		is_physical_partition = TRUE;
1400
		is_physical_partition = TRUE;
Lines 1404-1410 Link Here
1404
		hal_device_property_set_bool (d, "volume.is_partition", is_physical_partition);
1404
		hal_device_property_set_bool (d, "volume.is_partition", is_physical_partition);
1405
1405
1406
		hal_device_property_set_string (d, "info.category", "volume");
1406
		hal_device_property_set_string (d, "info.category", "volume");
1407
		if (strcmp(hal_device_property_get_string (parent, "storage.drive_type"), "cdrom") == 0) {
1407
		if (strcmp(hal_device_property_get_string (parent, "storage.drive_type") ? : "", "cdrom") == 0) {
1408
			hal_device_add_capability (d, "volume.disc");
1408
			hal_device_add_capability (d, "volume.disc");
1409
		}
1409
		}
1410
		hal_device_add_capability (d, "volume");
1410
		hal_device_add_capability (d, "volume");

Return to bug 286046