Have mkstorage report the volumes created.

This commit is contained in:
Jarrod Johnson 2013-10-27 15:22:50 -04:00
parent dc9dd79a5b
commit 7cab5a1f41

View File

@ -107,6 +107,7 @@ sub mkstorage {
my %lunargs = (controller=>$controller, size=>$size, pool=>$pool);
if ($name) { $lunargs{name} = $name; }
my $lun = create_lun(%lunargs);
sendmsg($lun->{name}.": id: ".$lun->{wwn},$callback);
my $wwns = get_wwns(@nodes);
my %namemap = makehosts($wwns, controller=>$controller, cfg=>$storents);
my @names = values %namemap;
@ -381,6 +382,7 @@ sub mkstorage_single {
$lunargs{name} = $args{name}."-".$node;
}
my $lun = create_lun(%lunargs);
sendmsg($lun->{name}.": id: ".$lun->{wwn},$callback,$node);
my $wwns = get_wwns($node);
my %namemap = makehosts($wwns, controller=>$controller, cfg=>{$node=>$cfg});
my @names = values %namemap;