]> git.proxmox.com Git - pve-storage.git/commitdiff
has_feature : template
authorAlexandre Derumier <aderumier@odiso.com>
Sat, 16 Feb 2013 07:52:07 +0000 (08:52 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Feb 2013 05:18:15 +0000 (06:18 +0100)
for plugin-rbd-sheepdog-nexenta

+ indentation fix

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/NexentaPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/SheepdogPlugin.pm

index 1b0f6834466c89b28dae900a67a0715a5e73ea79..4c0e14a075afa1cb2732fbc9c43dc2ea536d46be 100644 (file)
@@ -481,7 +481,8 @@ sub volume_has_feature {
     my $features = {
        snapshot => { current => 1, snap => 1},
        clone => { base => 1},
-        copy => { base => 1, current => 1},
+       template => { current => 1},
+       copy => { base => 1, current => 1},
     };
 
     my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
index ebeb78b4f63259cb5c7ddc4b5c533106ea7c6c7f..88e34a90ee2bbec7cdcad1083038e53917ce5366 100644 (file)
@@ -682,9 +682,10 @@ sub volume_has_feature {
     my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
 
     my $features = {
-        snapshot => { current => { qcow2 => 1}, snap => { qcow2 => 1} },
-        clone => { base => {qcow2 => 1, raw => 1, vmdk => 1} },
-        copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
+       snapshot => { current => { qcow2 => 1}, snap => { qcow2 => 1} },
+       clone => { base => {qcow2 => 1, raw => 1, vmdk => 1} },
+       template => { current => {qcow2 => 1, raw => 1, vmdk => 1} },
+       copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
                  current => {qcow2 => 1, raw => 1, vmdk => 1},
                  snap => {qcow2 => 1} },
     };
index 00c93d2aacd18318c1fbcf8174544986488a5bab..dfc51b71f83849579db00360dccb8e8b4a534aa1 100644 (file)
@@ -469,9 +469,10 @@ sub volume_has_feature {
     my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
 
    my $features = {
-        snapshot => { current => 1, snap => 1},
-        clone => { base => 1},
-        copy => { base => 1, current => 1, snap => 1},
+       snapshot => { current => 1, snap => 1},
+       clone => { base => 1},
+       template => { current => 1},
+       copy => { base => 1, current => 1, snap => 1},
     };
 
     my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
index d506b57b21bf2fca08ede6548e5bcc34abb31535..d14cf5b3377be4447f70b53a92b22f1ae642f9e6 100644 (file)
@@ -432,6 +432,7 @@ sub volume_has_feature {
    my $features = {
        snapshot => { current => 1, snap => 1},
        clone => { base => 1},
+       template => { current => 1},
        copy => { base => 1, current => 1, snap => 1},
     };