]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
tests: add test that DDF marks missing devices as failed on assembly.
[thirdparty/mdadm.git] / super0.c
index e7d86d87f7e09a520741e0613db16342e4a7f5c4..3218377f74f4d72e12b4a6f4559d8041264ff0c6 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -662,7 +662,7 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
                                    sb->new_chunk/512 *
                                    (sb->raid_disks - sb->delta_disks - parity))) {
                                pr_err("Reshape position is not suitably aligned.\n");
-                               pr_err("Try normal assembly as stop again\n");
+                               pr_err("Try normal assembly and stop again\n");
                                return -2;
                        }
                        sb->raid_disks -= sb->delta_disks;
@@ -1274,7 +1274,7 @@ static int validate_geometry0(struct supertype *st, int level,
                               "%d terabytes per device\n", tbmax);
                return 0;
        }
-       if (chunk && *chunk == UnSet)
+       if (*chunk == UnSet)
                *chunk = DEFAULT_CHUNK;
 
        if (!subdev)