-
Fam Zheng authored
People get surprised when, after "qemu-img create -f raw /dev/sdX", they still see qcow2 with "qemu-img info", if previously the bdev had a qcow2 header. While this is natural because raw doesn't need to write any magic bytes during creation, hdev_create is free to clear out the first sector to make sure the stale qcow2 header doesn't cause such confusion. Signed-off-by:
Fam Zheng <famz@redhat.com>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>Fam Zheng authoredPeople get surprised when, after "qemu-img create -f raw /dev/sdX", they still see qcow2 with "qemu-img info", if previously the bdev had a qcow2 header. While this is natural because raw doesn't need to write any magic bytes during creation, hdev_create is free to clear out the first sector to make sure the stale qcow2 header doesn't cause such confusion. Signed-off-by:
Fam Zheng <famz@redhat.com>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Loading