From 1f9476aaf86cb465566b5a1cd5a2fb493531c2eb Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 30 Nov 2010 16:46:01 +1100 Subject: Assemble: add --update=no-bitmap This allows an array with a corrupt internal bitmap to be assembled without the bitmap. Signed-off-by: NeilBrown --- super0.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'super0.c') diff --git a/super0.c b/super0.c index b141b74..e855541 100644 --- a/super0.c +++ b/super0.c @@ -402,8 +402,9 @@ static int update_super0(struct supertype *st, struct mdinfo *info, char *devname, int verbose, int uuid_set, char *homehost) { - /* NOTE: for 'assemble' and 'force' we need to return non-zero if any change was made. - * For others, the return value is ignored. + /* NOTE: for 'assemble' and 'force' we need to return non-zero + * if any change was made. For others, the return value is + * ignored. */ int rv = 0; mdp_super_t *sb = st->sb; @@ -556,6 +557,8 @@ static int update_super0(struct supertype *st, struct mdinfo *info, bm = (struct bitmap_super_s*)(sb+1); uuid_from_super0(st, (int*)bm->uuid); } + } else if (strcmp(update, "no-bitmap") == 0) { + sb->state &= ~(1<reshape_position = info->reshape_progress; -- cgit v1.2.1