summaryrefslogtreecommitdiffstats
path: root/Build.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 05:50:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 05:50:16 +0000
commit19c986195eab02a3b1da7b532df623cf46d92418 (patch)
tree639e479365923111fbeb91a7d24dad570d50d0ff /Build.c
parentAdding upstream version 4.2+20231121. (diff)
downloadmdadm-19c986195eab02a3b1da7b532df623cf46d92418.tar.xz
mdadm-19c986195eab02a3b1da7b532df623cf46d92418.zip
Adding upstream version 4.2+20240118.upstream/4.2+20240118
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Build.c')
-rw-r--r--Build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build.c b/Build.c
index 657ab31..1fbf859 100644
--- a/Build.c
+++ b/Build.c
@@ -82,7 +82,7 @@ int Build(struct mddev_ident *ident, struct mddev_dev *devlist, struct shape *s,
return 1;
}
- map_update(&map, fd2devnm(mdfd), "none", uuid, chosen_name);
+ map_update(&map, fd2devnm(mdfd), STR_COMMON_NONE, uuid, chosen_name);
map_unlock(&map);
array.level = s->level;
@@ -111,7 +111,7 @@ int Build(struct mddev_ident *ident, struct mddev_dev *devlist, struct shape *s,
goto abort;
}
- if (s->bitmap_file && strcmp(s->bitmap_file, "none") == 0)
+ if (s->bitmap_file && str_is_none(s->bitmap_file) == true)
s->bitmap_file = NULL;
if (s->bitmap_file && s->level <= 0) {
pr_err("bitmaps not meaningful with level %s\n",