Skip to content

Commit 92850bb

Browse files
committed
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: NeilBrown <[email protected]>
1 parent 3c0ee63 commit 92850bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/md/md.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,6 +3463,11 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data)
34633463
disk->fops = &md_fops;
34643464
disk->private_data = mddev;
34653465
disk->queue = mddev->queue;
3466+
/* Allow extended partitions. This makes the
3467+
* 'mdp' device redundant, but we can really
3468+
* remove it now.
3469+
*/
3470+
disk->flags |= GENHD_FL_EXT_DEVT;
34663471
add_disk(disk);
34673472
mddev->gendisk = disk;
34683473
error = kobject_init_and_add(&mddev->kobj, &md_ktype,

0 commit comments

Comments
 (0)