]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita4160facf3aa78e8e52cb34a02c4d991c3d53ea6
treec045b733c5cf959e8f4e8608f4344f49e69d4e6c
parent46b9767939ffed53162316b90653a6294d86dbd7
[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