From patchwork Wed May 12 12:08:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 52380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B45C6B7DFC for ; Wed, 12 May 2010 22:09:20 +1000 (EST) Received: from localhost ([127.0.0.1]:46014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCAkW-0001Sd-H9 for incoming@patchwork.ozlabs.org; Wed, 12 May 2010 08:09:16 -0400 Received: from [140.186.70.92] (port=51383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCAjs-0001RO-KR for qemu-devel@nongnu.org; Wed, 12 May 2010 08:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCAjq-0001M5-Qw for qemu-devel@nongnu.org; Wed, 12 May 2010 08:08:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17206) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCAjq-0001Li-Bk for qemu-devel@nongnu.org; Wed, 12 May 2010 08:08:34 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4CC8WuW013448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 May 2010 08:08:33 -0400 Received: from localhost.localdomain (vpn1-7-19.ams2.redhat.com [10.36.7.19]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4CC8U1c025145; Wed, 12 May 2010 08:08:31 -0400 From: Kevin Wolf To: qemu-devel@nongnu.org Date: Wed, 12 May 2010 14:08:10 +0200 Message-Id: <1273666090-10459-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com Subject: [Qemu-devel] [PATCH] block: Remove special case for vvfat X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The special case doesn't really us buy anything. Without it vvfat works more consistently as a protocol. We get raw on top of vvfat now, which works just as well as using vvfat directly. Signed-off-by: Kevin Wolf --- block.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index ffe82f8..b65a3e5 100644 --- a/block.c +++ b/block.c @@ -326,11 +326,6 @@ static BlockDriver *find_image_format(const char *filename) uint8_t buf[2048]; BlockDriverState *bs; - drv = find_protocol(filename); - /* no need to test disk image formats for vvfat */ - if (drv && strcmp(drv->format_name, "vvfat") == 0) - return drv; - ret = bdrv_file_open(&bs, filename, 0); if (ret < 0) return NULL;