]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Change the option from NoUpdate to NodeNumUpdate
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 24 Mar 2016 10:00:35 +0000 (18:00 +0800)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 24 Mar 2016 16:33:27 +0000 (12:33 -0400)
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>
Grow.c
super1.c

diff --git a/Grow.c b/Grow.c
index 5953db2d96f29f9322cbaaa8fa094e01ac178f21..f58c753d92bbc2c8d21ead1852be30c44d52395a 100755 (executable)
--- a/Grow.c
+++ b/Grow.c
@@ -425,7 +425,7 @@ int Grow_addbitmap(char *devname, int fd, struct context *c, struct shape *s)
                                                    bitmapsize, offset_setable,
                                                    major)
                                                )
-                                               st->ss->write_bitmap(st, fd2, NoUpdate);
+                                               st->ss->write_bitmap(st, fd2, NodeNumUpdate);
                                        else {
                                                pr_err("failed to create internal bitmap - chunksize problem.\n");
                                                close(fd2);
index baa9a96ed4c7ca13c72e6d288fcb0917acbc3359..d6f3c9362af6fe662583a4aac7b053b167452378 100644 (file)
--- 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)