vvfat: do not fail if the disk has spare sectors
commite654bfe4c1211754d52b324a505ac46c2bfe2069
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Oct 2011 07:12:04 +0000 (5 09:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Nov 2011 14:55:45 +0000 (4 15:55 +0100)
tree4deaa34805b58ab7b4515ba0e3ee3b7bb62335e4
parent2b6a43a835e5082dedc6a5eea39a59463f97c81c
vvfat: do not fail if the disk has spare sectors

If the number of "faked sectors" + the number of sectors that are
part of a cluster does not sum up to the total number of sectors,
qemu-img convert fails.  Read these spare sectors as all zeros.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c