vvfat: allow some writes to bootsector
commitd0f95b6ca0241b14d6cc0f366d162684909370a9
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 10 Oct 2022 17:55:10 +0000 (10 19:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2022 18:14:11 +0000 (27 20:14 +0200)
tree509f6d78914a96522d5155de4456bdff6ab4ff44
parent69fbfff95e849156985cf95e2010ffc8762e34e6
vvfat: allow some writes to bootsector

'reserved1' field in bootsector is used to mark volume dirty, or need to verify.
Allow writes to bootsector which only changes the 'reserved1' field.

This fixes I/O errors on Windows guests.

Resolves: https://bugs.launchpad.net/qemu/+bug/1889421
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Message-Id: <20221010175511.3414357-2-hpoussin@reactos.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c