From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQz6j-0000Ao-GC for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:08:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQz6e-0007gM-PN for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:08:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQz6e-0007gD-Hu for qemu-devel@nongnu.org; Thu, 26 Feb 2015 09:08:00 -0500 Message-ID: <54EF28A6.9010302@redhat.com> Date: Thu, 26 Feb 2015 15:07:34 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1423710438-14377-1-git-send-email-wency@cn.fujitsu.com> <1423710438-14377-7-git-send-email-wency@cn.fujitsu.com> <54EB9C36.4060606@redhat.com> <54ED321D.2050607@cn.fujitsu.com> <54EDDAB7.90404@redhat.com> In-Reply-To: <54EDDAB7.90404@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 06/14] NBD client: connect to nbd server later List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , Wen Congyang , qemu devel , Kevin Wolf , Stefan Hajnoczi Cc: Lai Jiangshan , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Gonglei , Yang Hongyang , zhanghailiang On 25/02/2015 15:22, Max Reitz wrote: > 3. nbd_co_discard() > quorum doens't call bdrv_co_discard(), so it is OK to return -EIO here. That can change, so I think you should return -EIO either everywhere or nowhere. Which probably means nowhere. > Hm, okay. How about adding an option to quorum for ignoring errors from > a specific child? It's probably not possible to do something like > "children.1.ignore-errors=true", but maybe you can just ignore errors in > quorum from any but the first child if the read pattern is set to > "first", that would make sense to me. > > But if you don't want to do that, I guess just making NBD some kind of > /dev/null before it's connected should be fine. I think what Wen is doing is okay, especially since it's only the special nbd+colo:// URIs that are acting as /dev/null. Paolo