]> git.proxmox.com Git - pve-container.git/commitdiff
Add cifs as allowed storage type.
authorWolfgang Link <w.link@proxmox.com>
Tue, 8 May 2018 07:27:00 +0000 (09:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 May 2018 07:54:03 +0000 (09:54 +0200)
src/PVE/LXC.pm

index de3c91fb1953265b1049681e208b878cde0ddb8b..4f9674d64221437de690d95f0881478062ba7f19 100644 (file)
@@ -1348,7 +1348,7 @@ sub alloc_disk {
 
     eval {
        my $do_format = 0;
 
     eval {
        my $do_format = 0;
-       if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs') {
+       if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' || $scfg->{type} eq 'cifs' ) {
            if ($size_kb > 0) {
                $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'raw',
                                                   undef, $size_kb);
            if ($size_kb > 0) {
                $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'raw',
                                                   undef, $size_kb);