summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLabun, Marcin <Marcin.Labun@intel.com>2011-03-10 11:50:52 +1100
committerNeilBrown <neilb@suse.de>2011-03-10 11:50:52 +1100
commitd54559f08abf40f533b6d9242f3545668cce78c1 (patch)
treec5080a57b670157ca6f33f38e4d9268611b90462
parent2db863023e82e7b7d93bc9ef336db3c4f15740e9 (diff)
downloadmdadm-d54559f08abf40f533b6d9242f3545668cce78c1.tar.gz
imsm: print-out error message when volume validation fails
Print-out error message when volume geometry fails to comply with OROM/EFI controller's capabilities. Signed-off-by: Marcin Labun <marcin.labun@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--super-intel.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/super-intel.c b/super-intel.c
index 7f620c0..4964942 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -4285,9 +4285,11 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
if (!super)
return 0;
- if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, verbose))
+ if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, verbose)) {
+ fprintf(stderr, Name ": RAID gemetry validation failed. "
+ "Cannot proceed with the action(s).\n");
return 0;
-
+ }
if (!dev) {
/* General test: make sure there is space for
* 'raiddisks' device extents of size 'size' at a given
@@ -4494,7 +4496,8 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout,
struct mdinfo *sra;
int is_member = 0;
- /* if given unused devices create a container
+ /* load capability
+ * if given unused devices create a container
* if given given devices in a container create a member volume
*/
if (level == LEVEL_CONTAINER) {