pub(super) enum FixedMapping {
ZeroDiscard,
ZeroRetainAllocation,
FullDiscard,
}
Expand description
Possible mapping types for Qcow2::ensure_fixed_mapping()
.
Variants§
ZeroDiscard
Make all clusters zero clusters, discarding previous allocations.
Note this breaks existing mapping information, which must be communicated somehow, for
example by requiring mutable access to the Qcow2
object.
ZeroRetainAllocation
Make all clusters zero clusters, retaining previous allocations.
Retains previous data cluster allocations in the form of preallocated zero clusters, but cannot retain previously existing compressed cluster allocations. Because those mappings are not returned through the mapping interface, however, concurrent accesses should be reasonably safe.
(Writing to zeroed data cluster mappings will just have no effect.)
FullDiscard
Fully remove clusters’ mappings, allowing backing data to appear.
Note this breaks existing mapping information, which must be communicated somehow, for
example by requiring mutable access to the Qcow2
object.
Trait Implementations§
Source§impl Clone for FixedMapping
impl Clone for FixedMapping
Source§fn clone(&self) -> FixedMapping
fn clone(&self) -> FixedMapping
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more