diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-03-27 13:35:31 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-01 13:49:53 +0200 |
commit | 4c7096607d0378de8d999c996802a73e601b2722 (patch) | |
tree | 7e02da1e50b977ca84d67ba8f28f7ddeea4aacdf /block | |
parent | bdf866fe6cce1f949227c32fcc9b7320fcdc60c6 (diff) | |
download | qemu-4c7096607d0378de8d999c996802a73e601b2722.zip qemu-4c7096607d0378de8d999c996802a73e601b2722.tar.gz qemu-4c7096607d0378de8d999c996802a73e601b2722.tar.bz2 |
vvfat: Fix :floppy: option to suppress partition table
Regressed in commit 7ad9be6, v1.5.0.
Reported-by: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/vvfat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c index f966ea5..1978c9e 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -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; |