From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcINY-00041X-Gp for qemu-devel@nongnu.org; Thu, 30 Jun 2011 10:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcINX-00033T-3z for qemu-devel@nongnu.org; Thu, 30 Jun 2011 10:38:04 -0400 Received: from smtp.citrix.com ([66.165.176.89]:17734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcINW-00033N-NP for qemu-devel@nongnu.org; Thu, 30 Jun 2011 10:38:02 -0400 From: Date: Thu, 30 Jun 2011 15:42:31 +0100 Message-ID: <1309444951-25711-1-git-send-email-stefano.stabellini@eu.citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2] xen_disk: treat "aio" as "raw" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: kwolf@redhat.com, xen-devel@lists.xensource.com, qemu-devel@nongnu.org, Stefano Stabellini From: Stefano Stabellini Sometimes the toolstack uses "aio" without an additional format identifier, in such cases use "raw". Updated in v2: - fix code style. Signed-off-by: Stefano Stabellini --- hw/xen_disk.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index faaa065..4abdaf9 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -633,6 +633,9 @@ static int blk_init(struct XenDevice *xendev) blkdev->filename = blkdev->params; } } + if (!strcmp("aio", blkdev->fileproto)) { + blkdev->fileproto = "raw"; + } if (blkdev->mode == NULL) { blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode"); } -- 1.7.2.3