]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
Grow: Report when grow needs metadata update
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index a9c8589c833fac995494abd60abcb794a597fade..76bb35a862164a7f887f3a149b2d35e326f2ebfe 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -2255,7 +2255,9 @@ static int set_new_data_offset(struct mdinfo *sra, struct supertype *st,
                if (info2.space_before == 0 &&
                    info2.space_after == 0) {
                        /* Metadata doesn't support data_offset changes */
-                       return 1;
+                       pr_err("%s: Metadata version doesn't support"
+                              " data_offset changes\n", devname);
+                       goto release;
                }
                if (before > info2.space_before)
                        before = info2.space_before;