summaryrefslogtreecommitdiff
path: root/super1.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-03-24 18:00:35 +0800
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-03-24 12:33:27 -0400
commit81306e021ebdcc4baef866da82d25c3f0a415d2d (patch)
treec22211c20b5799cc509c00c3c2123a3b9445f2c4 /super1.c
parent0c79d8ca10fe26d6117aa413a4d1854eec5aa430 (diff)
downloadmdadm-81306e021ebdcc4baef866da82d25c3f0a415d2d.tar.gz
Change the option from NoUpdate to NodeNumUpdate
Actually, we need to use NodeNumUpdate here to ensure there are enough spaces for those nodes. Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index baa9a96..d6f3c93 100644
--- a/super1.c
+++ b/super1.c
@@ -1867,7 +1867,7 @@ static int write_init_super1(struct supertype *st)
}
if (rv == 0 && (__le32_to_cpu(sb->feature_map) & 1))
- rv = st->ss->write_bitmap(st, di->fd, NoUpdate);
+ rv = st->ss->write_bitmap(st, di->fd, NodeNumUpdate);
close(di->fd);
di->fd = -1;
if (rv)