Commit 92850bbd authored by NeilBrown's avatar NeilBrown

md: allow extended partitions on md devices.

The new extended partition support provides a much nicer was
to have partitions on md devices that the 'mdp' alternate major.
We cannot really get rid of 'mdp' at this time, but we can
enable extended partitions as that will probably make life
easier for sysadmins.
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 3c0ee63a
...@@ -3463,6 +3463,11 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data) ...@@ -3463,6 +3463,11 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data)
disk->fops = &md_fops; disk->fops = &md_fops;
disk->private_data = mddev; disk->private_data = mddev;
disk->queue = mddev->queue; disk->queue = mddev->queue;
/* Allow extended partitions. This makes the
* 'mdp' device redundant, but we can really
* remove it now.
*/
disk->flags |= GENHD_FL_EXT_DEVT;
add_disk(disk); add_disk(disk);
mddev->gendisk = disk; mddev->gendisk = disk;
error = kobject_init_and_add(&mddev->kobj, &md_ktype, error = kobject_init_and_add(&mddev->kobj, &md_ktype,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment