add sparseinit to has_feature
we will use this for determining if we need to write zeros to a volume Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
668f6d9faf
commit
baafddbd02
@ -336,6 +336,7 @@ sub volume_has_feature {
|
|||||||
clone => { base => 1, snap => 1},
|
clone => { base => 1, snap => 1},
|
||||||
template => { current => 1},
|
template => { current => 1},
|
||||||
copy => { base => 1, current => 1, snap => 1},
|
copy => { base => 1, current => 1, snap => 1},
|
||||||
|
sparseinit => { base => 1, current => 1},
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
||||||
|
|||||||
@ -742,6 +742,8 @@ sub volume_has_feature {
|
|||||||
copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
|
copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
|
||||||
current => {qcow2 => 1, raw => 1, vmdk => 1},
|
current => {qcow2 => 1, raw => 1, vmdk => 1},
|
||||||
snap => {qcow2 => 1} },
|
snap => {qcow2 => 1} },
|
||||||
|
sparseinit => { base => {qcow2 => 1, raw => 1, vmdk => 1},
|
||||||
|
current => {qcow2 => 1, raw => 1, vmdk => 1} },
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase, $format) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase, $format) =
|
||||||
|
|||||||
@ -594,6 +594,7 @@ sub volume_has_feature {
|
|||||||
clone => { base => 1, snap => 1},
|
clone => { base => 1, snap => 1},
|
||||||
template => { current => 1},
|
template => { current => 1},
|
||||||
copy => { base => 1, current => 1, snap => 1},
|
copy => { base => 1, current => 1, snap => 1},
|
||||||
|
sparseinit => { base => 1, current => 1},
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
||||||
|
|||||||
@ -435,6 +435,7 @@ sub volume_has_feature {
|
|||||||
clone => { base => 1},
|
clone => { base => 1},
|
||||||
template => { current => 1},
|
template => { current => 1},
|
||||||
copy => { base => 1, current => 1, snap => 1},
|
copy => { base => 1, current => 1, snap => 1},
|
||||||
|
sparseinit => { base => 1, current => 1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
||||||
|
|||||||
@ -577,6 +577,7 @@ sub volume_has_feature {
|
|||||||
clone => { base => 1},
|
clone => { base => 1},
|
||||||
template => { current => 1},
|
template => { current => 1},
|
||||||
copy => { base => 1, current => 1},
|
copy => { base => 1, current => 1},
|
||||||
|
sparseinit => { base => 1, current => 1},
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
||||||
|
|||||||
Reference in New Issue
Block a user