]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/LunCmd/Comstar.pm
Added target-group and host-group options for ZFS comstar views. Use "comstar_tg...
[pve-storage.git] / PVE / Storage / LunCmd / Comstar.pm
index aa1c61439ab4246affd47d66fc743508ef8bdc57..1b079f0abcd4d6b504845dd14343aac903c4ecb8 100644 (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);