aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid6main.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-01-06 03:20:15 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:34:02 -0500
commit6ff8d8ec06690f4011a6c3ad9e0759b9094f0601 (patch)
tree3606791ca1fb73e0263c4bb90d9c909d354bf9d4 /drivers/md/raid6main.c
parent14f8d26b8ea3413b28f2cac208c9a93600fe3a80 (diff)
[PATCH] md: allow dirty raid[456] arrays to be started at boot
See patch to md.txt for more details Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid6main.c')
-rw-r--r--drivers/md/raid6main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/md/raid6main.c b/drivers/md/raid6main.c
index 0000d162d198..9ac6dcd55127 100644
--- a/drivers/md/raid6main.c
+++ b/drivers/md/raid6main.c
@@ -1929,13 +1929,18 @@ static int run(mddev_t *mddev)
1929 goto abort; 1929 goto abort;
1930 } 1930 }
1931 1931
1932#if 0 /* FIX: For now */
1933 if (mddev->degraded > 0 && 1932 if (mddev->degraded > 0 &&
1934 mddev->recovery_cp != MaxSector) { 1933 mddev->recovery_cp != MaxSector) {
1935 printk(KERN_ERR "raid6: cannot start dirty degraded array for %s\n", mdname(mddev)); 1934 if (mddev->ok_start_degraded)
1936 goto abort; 1935 printk(KERN_WARNING "raid6: starting dirty degraded array:%s"
1936 "- data corruption possible.\n",
1937 mdname(mddev));
1938 else {
1939 printk(KERN_ERR "raid6: cannot start dirty degraded array"
1940 " for %s\n", mdname(mddev));
1941 goto abort;
1942 }
1937 } 1943 }
1938#endif
1939 1944
1940 { 1945 {
1941 mddev->thread = md_register_thread(raid6d, mddev, "%s_raid6"); 1946 mddev->thread = md_register_thread(raid6d, mddev, "%s_raid6");