[Linux-ia64] [PATCH] fix raid on GPT partitions

From: Alex Williamson <alex_williamson_at_hp.com>
Date: 2002-08-17 02:33:08
   Seems a minor number increment was missed in the efi partition
code.  This was causing RAID to only autodetect if you were lucky
enough to be using raid on the first partition of the disk.  Here's
the fix (against 2.4.18+0722).

	Alex

--
Alex Williamson                                  Linux Development Lab
alex_williamson@hp.com                                 Hewlett Packard
970-898-9173                                          Fort Collins, CO
Index: fs/partitions/efi.c
===================================================================
RCS file: /var/cvs/linux/fs/partitions/efi.c,v
retrieving revision 1.4
diff -u -p -r1.4 efi.c
--- fs/partitions/efi.c	15 May 2002 16:15:16 -0000	1.4
+++ fs/partitions/efi.c	16 Aug 2002 16:14:55 -0000
@@ -740,7 +740,7 @@ add_gpt_partitions(struct gendisk *hd, s
                                  PARTITION_LINUX_RAID_GUID)) {
                         md_autodetect_dev(MKDEV
                                           (MAJOR(to_kdev_t(bdev->bd_dev)),
-                                           nextminor));
+                                           nextminor+i));
 		}
 #endif
 	}
Received on Fri Aug 16 09:37:11 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST