From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
Peter Krempa <pkrempa@redhat.com>
Subject: Re: [Qemu-devel] [PULL 12/17] gluster: Correctly propagate errors when volume isn't accessible
Date: Mon, 12 May 2014 10:07:07 -0600 [thread overview]
Message-ID: <5370F1AB.2070502@redhat.com> (raw)
In-Reply-To: <1399662217-31148-13-git-send-email-stefanha@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
On 05/09/2014 01:03 PM, Stefan Hajnoczi wrote:
> From: Peter Krempa <pkrempa@redhat.com>
>
> The docs for glfs_init suggest that the function sets errno on every
> failure. In fact it doesn't. As other functions such as
> qemu_gluster_open() in the gluster block code report their errors based
> on this fact we need to make sure that errno is set on each failure.
>
> This fixes a crash of qemu-img/qemu when a gluster brick isn't
> accessible from given host while the server serving the volume
> description is.
>
> Thread 1 (Thread 0x7ffff7fba740 (LWP 203880)):
> #0 0x00007ffff77673f8 in glfs_lseek () from /usr/lib64/libgfapi.so.0
> #1 0x0000555555574a68 in qemu_gluster_getlength ()
> #2 0x0000555555565742 in refresh_total_sectors ()
> #3 0x000055555556914f in bdrv_open_common ()
> #4 0x000055555556e8e8 in bdrv_open ()
> #5 0x000055555556f02f in bdrv_open_image ()
> #6 0x000055555556e5f6 in bdrv_open ()
> #7 0x00005555555c5775 in bdrv_new_open ()
> #8 0x00005555555c5b91 in img_info ()
> #9 0x00007ffff62c9c05 in __libc_start_main () from /lib64/libc.so.6
> #10 0x00005555555648ad in _start ()
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
Isn't this missing S-o-b from Peter?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-05-12 16:07 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 19:03 [Qemu-devel] [PULL 00/17] Block patches Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 01/17] qcow2: Fix alloc_clusters_noref() overflow detection Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 02/17] iotests: Use configured python Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 03/17] qemu-img: sort block formats in help message Stefan Hajnoczi
2014-05-13 14:18 ` Cornelia Huck
2014-05-13 15:40 ` Mike Day
2014-05-14 12:35 ` Stefan Hajnoczi
2014-05-14 13:27 ` Mike Day
2014-05-14 13:40 ` Fam Zheng
2014-05-14 13:46 ` Jeff Cody
2014-05-14 13:43 ` Jeff Cody
2014-05-14 14:03 ` Mike Day
2014-05-09 19:03 ` [Qemu-devel] [PULL 04/17] block/nfs: Check for NULL server part Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 05/17] block/iscsi: bump year in copyright notice Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 06/17] qemu-img: Convert by cluster size if target is compressed Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 07/17] vmdk: Implement .bdrv_write_compressed Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 08/17] vmdk: Implement .bdrv_get_info() Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 09/17] qemu-iotests: Test converting to streamOptimized from small cluster size Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 10/17] block: Fix open flags with BDRV_O_SNAPSHOT Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 11/17] vl.c: remove init_clocks call from main Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 12/17] gluster: Correctly propagate errors when volume isn't accessible Stefan Hajnoczi
2014-05-12 16:07 ` Eric Blake [this message]
2014-05-14 12:36 ` Stefan Hajnoczi
2014-05-14 12:52 ` Peter Krempa
2014-05-09 19:03 ` [Qemu-devel] [PULL 13/17] block/raw-posix: Try both FIEMAP and SEEK_HOLE Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 14/17] block: qemu-iotests - add common.qemu, for bash-controlled qemu tests Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 15/17] block: qemu-iotests - update 085 to use common.qemu Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 16/17] block: qemu-iotests - test for live migration Stefan Hajnoczi
2014-05-09 19:03 ` [Qemu-devel] [PULL 17/17] glib: fix g_poll early timeout on windows Stefan Hajnoczi
2014-05-13 10:32 ` [Qemu-devel] [PULL 00/17] Block patches Peter Maydell
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=5370F1AB.2070502@redhat.com \
--to=eblake@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pkrempa@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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.