qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	aliguori@us.ibm.com, Wenchao Xia <xiawenc@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] [RFC] libqblock draft code v1
Date: Thu, 02 Aug 2012 13:08:02 +0200	[thread overview]
Message-ID: <501A5F92.3080102@redhat.com> (raw)
In-Reply-To: <20120802101754.GA27056@stefanha-thinkpad.localdomain>

Il 02/08/2012 12:17, Stefan Hajnoczi ha scritto:
>> >   Main purpose of it is to set ret to err_v when memory is not enough,
>> > I am not sure how to make this happens for every strdup.
> Eric pointed out that we cannot use g_strdup() because it aborts on
> memory allocation failure, so please ignore my suggestion to use that.

I wouldn't.  What good it is to avoid g_strdup, if the block layer will
later use g_malloc anyway?

Paolo

  reply	other threads:[~2012-08-02 11:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01  9:09 [Qemu-devel] [PATCH] [RFC] libqblock draft code v1 Wenchao Xia
2012-08-01 10:44 ` Paolo Bonzini
2012-08-02  7:57   ` Wenchao Xia
2012-08-02  8:59     ` Paolo Bonzini
2012-08-02 10:23       ` Stefan Hajnoczi
2012-08-01 12:49 ` Stefan Hajnoczi
2012-08-01 13:25   ` Eric Blake
2012-08-02 10:18     ` Stefan Hajnoczi
2012-08-02 11:11     ` Daniel P. Berrange
2012-08-02 11:13       ` Paolo Bonzini
2012-08-03  7:54         ` Wenchao Xia
2012-08-02  8:18   ` Wenchao Xia
2012-08-02 10:17     ` Stefan Hajnoczi
2012-08-02 11:08       ` Paolo Bonzini [this message]
2012-08-01 18:04 ` Blue Swirl
2012-08-02  8:32   ` Wenchao Xia
2012-08-02  9:00     ` Paolo Bonzini

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=501A5F92.3080102@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=xiawenc@linux.vnet.ibm.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).