]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Allow "--write-behind=" to be done in grow mode.
authorIan Dall <ian@beware.dropbear.id.au>
Mon, 9 Jul 2007 01:29:04 +0000 (11:29 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 9 Jul 2007 01:29:04 +0000 (11:29 +1000)
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.

ChangeLog
mdadm.c

index e34a6b97570fc35fb8bd757a4f4964f6e7cfd98a..10ddcf00a1e57905c8eda8589e455a4f1d898d0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Changes Prior to this release
+    -   allow --write-behind to be set for --grow.
+
 Changes Prior to 2.6.2 release
     -   --fail detached and --remove faulty can be used to fail and
        remove devices that are no longer physically present.
diff --git a/mdadm.c b/mdadm.c
index e96ce68aa41e2980a1b0a161cd9ab04063c76b77..45ffaee27508f004db19d6e247a5876f2992c73e 100644 (file)
--- 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;