Grow: Report when grow needs metadata update

Report when the array's metadata needs updating instead of just
reporting the generic "kernel too old" message.

Signed-off-by: Andy Smith <andy@strugglers.net>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Andy Smith 2014-08-29 20:47:12 +00:00 committed by NeilBrown
parent c60495c8b6
commit a821c95f11
1 changed files with 3 additions and 1 deletions

4
Grow.c
View File

@ -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;