From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT9X5-0000h5-VW for qemu-devel@nongnu.org; Thu, 27 Mar 2014 08:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WT9X1-0006oO-0k for qemu-devel@nongnu.org; Thu, 27 Mar 2014 08:35:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT9X0-0006oB-Cf for qemu-devel@nongnu.org; Thu, 27 Mar 2014 08:35:38 -0400 From: Markus Armbruster Date: Thu, 27 Mar 2014 13:35:31 +0100 Message-Id: <1395923731-29066-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH for-2.0] vvfat: Fix :floppy: option to suppress partition table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, suto@ks-and-ks.ne.jp, stefanha@redhat.com Regressed in commit 7ad9be6, v1.5.0. Reported-by: Kiyokazu SUTO Signed-off-by: Markus Armbruster --- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.1.4