[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] 2.5.42 osf partition raid autodetech



here's the 2.5 version

-- 
Tom Vier <tmv@comcast.net>
DSA Key ID 0xE6CB97DA
--- linux-2.5.42-patched-build/fs/partitions/osf.c-orig	Tue Oct 15 21:48:08 2002
+++ linux-2.5.42-patched-build/fs/partitions/osf.c	Tue Oct 15 22:51:16 2002
@@ -66,10 +66,14 @@
 	for (i = 0 ; i < le16_to_cpu(label->d_npartitions); i++, partition++) {
 		if (slot == state->limit)
 		        break;
-		if (le32_to_cpu(partition->p_size))
-			put_partition(state, slot++,
+		if (le32_to_cpu(partition->p_size)) {
+			put_partition(state, slot,
 				le32_to_cpu(partition->p_offset),
 				le32_to_cpu(partition->p_size));
+			if (le32_to_cpu(partition->p_fstype) == LINUX_RAID_PARTITION)
+			  state->parts[slot].flags = 1;
+			slot++;
+		}
 	}
 	printk("\n");
 	put_dev_sector(sect);

Reply to: