diff options
Diffstat (limited to 'usr/src/lib/lvm/libmeta/common/meta_raid.c')
-rw-r--r-- | usr/src/lib/lvm/libmeta/common/meta_raid.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/lib/lvm/libmeta/common/meta_raid.c b/usr/src/lib/lvm/libmeta/common/meta_raid.c index bc61f0bd68..41013fdf00 100644 --- a/usr/src/lib/lvm/libmeta/common/meta_raid.c +++ b/usr/src/lib/lvm/libmeta/common/meta_raid.c @@ -2524,6 +2524,16 @@ meta_init_raid( ep)) == NULL) { goto out; } + + /* + * Get out if the specified hotspare pool really + * doesn't exist. + */ + if (raidp->hspnamep->hsp == MD_HSP_NONE) { + (void) mdhsperror(ep, MDE_INVAL_HSP, + raidp->hspnamep->hsp, optarg); + goto out; + } break; case 'i': |