From: Ian Dall Date: Mon, 9 Jul 2007 01:29:04 +0000 (+1000) Subject: Allow "--write-behind=" to be done in grow mode. X-Git-Tag: mdadm-2.6.3~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d19ad0de31cd0b94e69ac5f2efee98254f27316;p=thirdparty%2Fmdadm.git Allow "--write-behind=" to be done in grow mode. From: Ian Dall 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. --- diff --git a/ChangeLog b/ChangeLog index e34a6b97..10ddcf00 100644 --- 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 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;