All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: stefano.stabellini@eu.citrix.com
Cc: Kevin Wolf <kwolf@redhat.com>,
	xen-devel@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] xen_disk: treat "aio" as "raw"
Date: Thu, 30 Jun 2011 13:47:47 +0200	[thread overview]
Message-ID: <4E0C6263.20908@suse.de> (raw)
In-Reply-To: <1308927034-10209-2-git-send-email-stefano.stabellini@eu.citrix.com>

On 06/24/2011 04:50 PM, stefano.stabellini@eu.citrix.com wrote:
> From: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
>
> Sometimes the toolstack uses "aio" without an additional format
> identifier, in such cases use "raw".

Shouldn't this rather be a patch to the toolstack then? We do automatic 
file format recognition as default. I find magical "aio equals raw" 
subtleties rather unintuitive.


> Signed-off-by: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
> ---
>   hw/xen_disk.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xen_disk.c b/hw/xen_disk.c
> index 801da58..745127d 100644
> --- a/hw/xen_disk.c
> +++ b/hw/xen_disk.c
> @@ -633,6 +633,8 @@ static int blk_init(struct XenDevice *xendev)
>               blkdev->filename  = blkdev->params;
>           }
>       }
> +    if (!strcmp("aio", blkdev->fileproto))
> +        blkdev->fileproto = "raw";

Braces

>       if (blkdev->mode == NULL) {
>           blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
>       }


Alex

WARNING: multiple messages have this Message-ID (diff)
From: Alexander Graf <agraf@suse.de>
To: stefano.stabellini@eu.citrix.com
Cc: Kevin Wolf <kwolf@redhat.com>,
	xen-devel@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [PATCH] xen_disk: treat "aio" as "raw"
Date: Thu, 30 Jun 2011 13:47:47 +0200	[thread overview]
Message-ID: <4E0C6263.20908@suse.de> (raw)
In-Reply-To: <1308927034-10209-2-git-send-email-stefano.stabellini@eu.citrix.com>

On 06/24/2011 04:50 PM, stefano.stabellini@eu.citrix.com wrote:
> From: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
>
> Sometimes the toolstack uses "aio" without an additional format
> identifier, in such cases use "raw".

Shouldn't this rather be a patch to the toolstack then? We do automatic 
file format recognition as default. I find magical "aio equals raw" 
subtleties rather unintuitive.


> Signed-off-by: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
> ---
>   hw/xen_disk.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xen_disk.c b/hw/xen_disk.c
> index 801da58..745127d 100644
> --- a/hw/xen_disk.c
> +++ b/hw/xen_disk.c
> @@ -633,6 +633,8 @@ static int blk_init(struct XenDevice *xendev)
>               blkdev->filename  = blkdev->params;
>           }
>       }
> +    if (!strcmp("aio", blkdev->fileproto))
> +        blkdev->fileproto = "raw";

Braces

>       if (blkdev->mode == NULL) {
>           blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode");
>       }


Alex

  reply	other threads:[~2011-06-30 11:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 14:50 [Qemu-devel] [PATCH] xen_disk: cope with missing xenstore "params" node stefano.stabellini
2011-06-24 14:50 ` stefano.stabellini
2011-06-24 14:50 ` [Qemu-devel] [PATCH] xen_disk: treat "aio" as "raw" stefano.stabellini
2011-06-24 14:50   ` stefano.stabellini
2011-06-30 11:47   ` Alexander Graf [this message]
2011-06-30 11:47     ` Alexander Graf
2011-06-30 12:47     ` [Qemu-devel] " Kevin Wolf
2011-06-30 12:47       ` Kevin Wolf
2011-06-30 12:45       ` [Qemu-devel] " Alexander Graf
2011-06-30 12:45         ` Alexander Graf
2011-06-30 14:20         ` [Qemu-devel] " Stefano Stabellini
2011-06-30 14:20           ` Stefano Stabellini
2011-06-30 14:32           ` [Qemu-devel] " Alexander Graf
2011-06-30 14:32             ` Alexander Graf
2011-06-30 14:39             ` [Qemu-devel] " Stefano Stabellini
2011-06-30 14:39               ` Stefano Stabellini
2011-06-24 15:06 ` [Qemu-devel] [PATCH] xen_disk: cope with missing xenstore "params" node Peter Maydell
2011-06-24 16:34   ` Stefano Stabellini
2011-06-24 16:34     ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E0C6263.20908@suse.de \
    --to=agraf@suse.de \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.