summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorIan Dall <ian@beware.dropbear.id.au>2007-07-09 03:29:04 +0200
committerNeil Brown <neilb@suse.de>2007-07-09 03:29:04 +0200
commit7d19ad0de31cd0b94e69ac5f2efee98254f27316 (patch)
tree60c296afcfd59fb38264cd5bf09980535536f356 /mdadm.c
parentEnhance raid4 support: --assemble and --monitor wasn't quite happy with it. (diff)
downloadmdadm-7d19ad0de31cd0b94e69ac5f2efee98254f27316.tar.xz
mdadm-7d19ad0de31cd0b94e69ac5f2efee98254f27316.zip
Allow "--write-behind=" to be done in grow mode.
From: Ian Dall <ian@beware.dropbear.id.au> I have a small patch to mdadm which allows the write-behind amount to be set a array grow time (instead of currently only at grow or create time). I have tested this fairly extensively on some arrays built out of loop back devices, and once on a real live array.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index e96ce68a..45ffaee2 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -844,6 +844,7 @@ int main(int argc, char *argv[])
bitmap_chunk = bitmap_chunk ? bitmap_chunk * 1024 : 512;
continue;
+ case O(GROW, WriteBehind):
case O(BUILD, WriteBehind):
case O(CREATE, WriteBehind): /* write-behind mode */
write_behind = DEFAULT_MAX_WRITE_BEHIND;