summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-05-14 03:17:39 +0200
committerNeilBrown <neilb@suse.de>2015-05-14 03:17:39 +0200
commitdd243f561f86bee424a032abbe05b492ca9208b0 (patch)
tree5a1a417e970f4446b43a0fc83d50f7ad6b7b7118 /Grow.c
parentManage: when re-adding, do check avail size if ->sb cannot be found. (diff)
downloadmdadm-dd243f561f86bee424a032abbe05b492ca9208b0.tar.xz
mdadm-dd243f561f86bee424a032abbe05b492ca9208b0.zip
Grow: only warn about incompatible metadata when no fallback available.
We might be trying to set_new_data_offset() for RAID10, when it is a necessary requirement, or for RAID5 where it is optional. In the latter case, a message about metadata versions is no helpful. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Grow.c b/Grow.c
index 9a573fd4..568e3996 100644
--- a/Grow.c
+++ b/Grow.c
@@ -2213,7 +2213,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 */
- pr_err("%s: Metadata version doesn't support data_offset changes\n", devname);
+ if (!can_fallback)
+ pr_err("%s: Metadata version doesn't support data_offset changes\n",
+ devname);
goto fallback;
}
if (before > info2.space_before)