fix raid on GPT partitions
PATCH 1/1 fix raid on GPT partitions
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
[email protected] 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
partitions/efi.c +1 -1
@@ -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 }
Quoted 4 lines
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).
Good catch, thanks!
-Matt
--
Matt Domsch
Sr. Software Engineer, Lead Engineer, Architect
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
#1 US Linux Server provider for 2001 and Q1/2002! (IDC May 2002)