qcow2
Created: May 23, 2020
qcow2 files are sparse, which means they have sections of zeroes that exist as metadata. The sections of zeroes exist logically but not physically.
-
lsreturns a logical view by default. Adding the-s flagwithout-lfor the physical view. -
dfanddureturn a physical view by default. -
cpdoes not preserve the sparseness by default. The flags--sparse=autoor--spare=alwayswill cause cp to preserve sparseness. -
rsynchas similar bevahiour and requires--sparse/-Sto preserve sparseness.
To restore the spareseness of a file copied incorrectly: ``` fallocate -d FILE ``