qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Peter Lieven <pl@kamp.de>
Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org,
	owasserm@redhat.com, ronniesahlberg@gmail.com,
	pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCHv3] block: add native support for NFS
Date: Fri, 20 Dec 2013 14:07:29 +0100	[thread overview]
Message-ID: <20131220130729.GC5905@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1387539117-2427-1-git-send-email-pl@kamp.de>

On Fri, Dec 20, 2013 at 12:31:57PM +0100, Peter Lieven wrote:
> - DID NOT add full implementation of bdrv_get_allocated_file_size because
>   we are not in a coroutine context and I cannot do an async call here.
>   I could do a sync call if there would be a guarantee that no requests
>   are in flight. [Stefan]

Let's discuss in the other email thread where we started.

> +static int64_t nfs_client_open(NFSClient *client, const char *filename,
> +                               int flags, Error **errp)
> +{
> +    int ret = -EINVAL;
> +    URI *uri;
> +    char *file = NULL, *strp = NULL;
> +    struct stat st;
> +
> +    uri = uri_parse(filename);
> +    if (!uri) {
> +        error_setg(errp, "Invalid URL specified.\n");

\n should not be included in error_setg() messages.

> +        goto fail;
> +    }
> +    strp = strrchr(uri->path, '/');
> +    if (strp == NULL) {
> +        error_setg(errp, "Invalid URL specified.\n");

\n should not be included in error_setg() messages.

  reply	other threads:[~2013-12-20 13:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 11:31 [Qemu-devel] [PATCHv3] block: add native support for NFS Peter Lieven
2013-12-20 13:07 ` Stefan Hajnoczi [this message]
2013-12-20 13:23   ` Peter Lieven

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=20131220130729.GC5905@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=owasserm@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=pl@kamp.de \
    --cc=qemu-devel@nongnu.org \
    --cc=ronniesahlberg@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).