[parted-devel] [PATCH] enable raid for mac disk labels

Olaf Hering olh at suse.de
Sat Apr 8 09:07:09 UTC 2006


Add 'set 2 raid on/off' capability for mac labels.

---
 libparted/labels/mac.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: parted-mainline/libparted/labels/mac.c
===================================================================
--- parted-mainline.orig/libparted/labels/mac.c
+++ parted-mainline/libparted/labels/mac.c
@@ -1218,6 +1218,9 @@ mac_partition_get_flag (const PedPartiti
 	case PED_PARTITION_LVM:
 		return mac_data->is_lvm;
 
+	case PED_PARTITION_RAID:
+		return mac_data->is_raid;
+
 	default:
 		return 0;
 	}
@@ -1232,6 +1235,7 @@ mac_partition_is_flag_available (
 	case PED_PARTITION_ROOT:
 	case PED_PARTITION_SWAP:
 	case PED_PARTITION_LVM:
+	case PED_PARTITION_RAID:
 		return 1;
 
 	default:



More information about the parted-devel mailing list