[PATCH] md: move warning about creating a raid array on partitions of the one device
authorNeilBrown <neilb@suse.de>
Thu, 1 Mar 2007 04:11:35 +0000 (20:11 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 1 Mar 2007 22:53:36 +0000 (14:53 -0800)
commit7dd5e7c3dbe8c4ffb507ddc0ea8fab07c8b11b0b
treec045b733c5cf959e8f4e8608f4344f49e69d4e6c
parenta723406c4aeedb9dc5d54fb81130d13c757f41bc
[PATCH] md: move warning about creating a raid array on partitions of the one device

md tries to warn the user if they e.g.  create a raid1 using two partitions of
the same device, as this does not provide true redundancy.

However it also warns if a raid0 is created like this, and there is nothing
wrong with that.

At the place where the warning is currently printer, we don't necessarily know
what level the array will be, so move the warning from the point where the
device is added to the point where the array is started.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c