Discover Packages
github.com/lima-vm/go-qcow2reader
test
qemuio
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Nov 25, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Discard(path, format, off, len, unmap)
Write(path, format, off, len, pattern)
Zero(path, format, off, len)
Types
Source Files
Documentation
Documentation
¶
func Discard(path string, format qemuimg.Format, off, len int64, unmap bool) error
func Write(path string, format qemuimg.Format, off, len int64, pattern byte) error
func Zero(path string, format qemuimg.Format, off, len int64) error
Discard unmap number of bytes at specified offset. Allocated cluster are
deaallocated and replaced with zero clusters.
Write writes a number of bytes at a specified offset, allocating all clusters
in specified range.
Zero writes zeros at a specified offset. The behavior depens on qcow2
version; In qcow2 v3, allocate zero clusters, marming entire cluster as zero.
In qcow2 v2, if the cluster are unallocated and there is no backing file, do
nothing. Otherwise allocate clusters and write actual zeros.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.