diff options
author | NeilBrown <neilb@suse.de> | 2006-01-06 03:20:15 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:34:02 -0500 |
commit | 6ff8d8ec06690f4011a6c3ad9e0759b9094f0601 (patch) | |
tree | 3606791ca1fb73e0263c4bb90d9c909d354bf9d4 /drivers/md/raid5.c | |
parent | 14f8d26b8ea3413b28f2cac208c9a93600fe3a80 (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/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 334ff7a07283..53a0f2ce76c8 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -1904,10 +1904,17 @@ static int run(mddev_t *mddev) | |||
1904 | 1904 | ||
1905 | if (mddev->degraded == 1 && | 1905 | if (mddev->degraded == 1 && |
1906 | mddev->recovery_cp != MaxSector) { | 1906 | mddev->recovery_cp != MaxSector) { |
1907 | printk(KERN_ERR | 1907 | if (mddev->ok_start_degraded) |
1908 | "raid5: cannot start dirty degraded array for %s\n", | 1908 | printk(KERN_WARNING |
1909 | mdname(mddev)); | 1909 | "raid5: starting dirty degraded array: %s" |
1910 | goto abort; | 1910 | "- data corruption possible.\n", |
1911 | mdname(mddev)); | ||
1912 | else { | ||
1913 | printk(KERN_ERR | ||
1914 | "raid5: cannot start dirty degraded array for %s\n", | ||
1915 | mdname(mddev)); | ||
1916 | goto abort; | ||
1917 | } | ||
1911 | } | 1918 | } |
1912 | 1919 | ||
1913 | { | 1920 | { |