Added target-group and host-group options for ZFS comstar views. Use "comstar_tg" and "comstar_hg" in "/etc/pve/storage.pm".

Signed-off-by: Chris Allen <Chris Allen>
This commit is contained in:
Chris Allen
2014-03-11 15:07:53 -07:00
committed by Dietmar Maurer
parent 551534a3bc
commit 454c15e270
2 changed files with 20 additions and 1 deletions

View File

@ -66,6 +66,15 @@ sub run_lun_command {
} elsif ($method eq 'list_lu') {
$guid = $params[0];
@params = undef;
} elsif ($method eq 'add_view') {
if ($scfg->{comstar_tg}) {
unshift @params, $scfg->{comstar_tg};
unshift @params, '--target-group';
}
if ($scfg->{comstar_hg}) {
unshift @params, $scfg->{comstar_hg};
unshift @params, '--host-group';
}
}
my $cmdmap = $get_lun_cmd_map->($method);