Neil Brown: Small improvements to --incremental for arrays that are in the middle of reshape

Martin F. Krafft madduck at alioth.debian.org
Wed Jun 25 15:42:26 UTC 2008


Module: mdadm
Branch: build
Commit: 5f98d3cbd9bdff77c59d7bb896af3732a938aa9c
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=5f98d3cbd9bdff77c59d7bb896af3732a938aa9c

Author: Neil Brown <neilb at suse.de>
Date:   Mon Apr 28 16:30:31 2008 +1000

Small improvements to --incremental for arrays that are in the middle of reshape

There is still a problem:  If array is partially assembled and started
read-only, the last device doesn't get added properly.  Probably a kernel
problem.

---

 super0.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/super0.c b/super0.c
index 2ca127e..b1ad47a 100644
--- a/super0.c
+++ b/super0.c
@@ -791,7 +791,7 @@ static int load_super0(struct supertype *st, int fd, char *devname)
 
 	if (st->ss == NULL) {
 		st->ss = &super0;
-		st->minor_version = 90;
+		st->minor_version = super->minor_version;
 		st->max_devs = MD_SB_DISKS;
 	}
 
@@ -830,6 +830,7 @@ static struct supertype *match_metadata_desc0(char *arg)
 	st->sb = NULL;
 	if (strcmp(arg, "0") == 0 ||
 	    strcmp(arg, "0.90") == 0 ||
+	    strcmp(arg, "0.91") == 0 ||
 	    strcmp(arg, "default") == 0
 		)
 		return st;




More information about the pkg-mdadm-commits mailing list