]> Git Repo - qemu.git/commitdiff
vvfat: Fix :floppy: option to suppress partition table
authorMarkus Armbruster <[email protected]>
Thu, 27 Mar 2014 12:35:31 +0000 (13:35 +0100)
committerStefan Hajnoczi <[email protected]>
Tue, 1 Apr 2014 11:49:53 +0000 (13:49 +0200)
Regressed in commit 7ad9be6, v1.5.0.

Reported-by: Kiyokazu SUTO <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
block/vvfat.c

index f966ea5da8e46e12dd16c978e9c4a35e4bf779c1..1978c9ed629dfb84178ba086527e210ab122840c 100644 (file)
@@ -1119,6 +1119,7 @@ DLOG(if (stderr == NULL) {
         if (!s->fat_type) {
             s->fat_type = 16;
         }
+        s->first_sectors_number = 0x40;
         cyls = s->fat_type == 12 ? 64 : 1024;
         heads = 16;
         secs = 63;
@@ -1146,7 +1147,6 @@ DLOG(if (stderr == NULL) {
 
     s->current_cluster=0xffffffff;
 
-    s->first_sectors_number=0x40;
     /* read only is the default for safety */
     bs->read_only = 1;
     s->qcow = s->write_target = NULL;
This page took 0.029892 seconds and 4 git commands to generate.