diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2011-10-26 15:51:18 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-28 19:25:49 +0200 |
commit | c794b4e0fd9ef8d72b068614dcdb2418c105d5cc (patch) | |
tree | 2e4995ea4d74b4a02c59ac61d76926f853211c35 /block/qcow2-snapshot.c | |
parent | 0f5314a2c8eeb1b1e775b480e252053157069cf7 (diff) |
Teach block/vdi about "discarded" (no longer allocated) blocks
An entry in the VDI block map will hold an offset to the actual block if
the block is allocated, or one of two specially-interpreted values if
not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_FREE
(0xffffffff) represents a never-allocated block (semantically arbitrary
content). VDI_IMAGE_BLOCK_ZERO (0xfffffffe) represents a "discarded"
block (semantically zero-filled). block/vdi knows only about
VDI_IMAGE_BLOCK_FREE. Teach it about VDI_IMAGE_BLOCK_ZERO.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2-snapshot.c')
0 files changed, 0 insertions, 0 deletions