diff options
author | NeilBrown <neilb@suse.de> | 2015-05-14 03:17:39 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-05-14 03:17:39 +0200 |
commit | dd243f561f86bee424a032abbe05b492ca9208b0 (patch) | |
tree | 5a1a417e970f4446b43a0fc83d50f7ad6b7b7118 /Grow.c | |
parent | Manage: when re-adding, do check avail size if ->sb cannot be found. (diff) | |
download | mdadm-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |