diff options
author | NeilBrown <neilb@suse.de> | 2009-11-17 03:15:34 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-11-17 03:15:34 +0100 |
commit | b42f577a0dbe0b232600478f4a5068b2f63a2684 (patch) | |
tree | fca53e53e4a4df5ea6999c887eee026b22240b58 /super-intel.c | |
parent | Set default bitmap-chunksize for internal bitmaps to at least 64Meg (diff) | |
download | mdadm-b42f577a0dbe0b232600478f4a5068b2f63a2684.tar.xz mdadm-b42f577a0dbe0b232600478f4a5068b2f63a2684.zip |
Improve error messages when metadata handler does not support request.
->validate_geometry is called to validate overall parameters,
and to validate each individual device.
If it ever fails, it needs to report the reason, as common code
cannot possible know.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 9a99d609..2e119f83 100644 --- a/super-intel.c +++ b/super-intel.c @@ -3704,8 +3704,11 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout, case 1: case 10: case 5: - break; + return 0; default: + if (verbose) + fprintf(stderr, Name + ": IMSM only supports levels 0,1,5,10\n"); return 1; } |