vvfat: reorganize computation of disk geometry
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Nov 2011 16:21:53 +0000 (17:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Nov 2011 16:32:23 +0000 (17:32 +0100)
commit273e4e03b3413fd489601cd9d8ba407ccb3b4130
treef987acb9281840785c5ca3e18d2b32078bd6baa2
parentd71cff42e4cd614986e2d0b8ded7aa3acaf28d92
vvfat: reorganize computation of disk geometry

First determine FAT12/16/32, then compute geometry from that for both
FDD and HDD.  For 1.44MB floppies, and 2.88MB floppies using FAT16,
change to 1 sector/cluster.  The default remains 2.88MB with FAT12
and 2 sectors/cluster.  Both DOS and mkdosfs by default format a 2.88MB
floppy as FAT12.

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