]> git.proxmox.com Git - mirror_qemu.git/commit - block/vvfat.c
vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_dir
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 22 May 2017 21:11:57 +0000 (23:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:05 +0000 (13:18 +0200)
commit4dc705dc7e96704df6ae3ba22fc3a3f0d0db7608
tree9175743d05d3556759b83c5aa43a4657e5b05f82
parentad05b31857b8f21c5ea89ba3e470a58c288f1c36
vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_dir

- offset_to_bootsector is the number of sectors up to FAT bootsector
- offset_to_fat is the number of sectors up to first File Allocation Table
- offset_to_root_dir is the number of sectors up to root directory sector

Replace first_sectors_number - 1 by offset_to_bootsector.
Replace first_sectors_number by offset_to_fat.
Replace faked_sectors by offset_to_rootdir.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c