From 7d19ad0de31cd0b94e69ac5f2efee98254f27316 Mon Sep 17 00:00:00 2001 From: Ian Dall Date: Mon, 9 Jul 2007 11:29:04 +1000 Subject: [PATCH] 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. --- ChangeLog | 3 +++ mdadm.c | 1 + 2 files changed, 4 insertions(+) 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; -- 2.47.2