Received: from eggs.gnu.org ([208.118.235.92]:42995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlKaW-00036G-QK for qemu-devel@nongnu.org; Wed, 19 Dec 2012 09:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlKaU-0000Is-DT for qemu-devel@nongnu.org; Wed, 19 Dec 2012 09:25:36 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:65393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlKaU-0000IY-5H for qemu-devel@nongnu.org; Wed, 19 Dec 2012 09:25:34 -0500 Received: by mail-wi0-f178.google.com with SMTP id hn3so1254698wib.5 for ; Wed, 19 Dec 2012 06:25:32 -0800 (PST) Date: Wed, 19 Dec 2012 15:25:23 +0100 From: Stefan Hajnoczi Message-ID: <20121219142523.GA25026@stefanha-thinkpad.redhat.com> References: <1355565174-5121-1-git-send-email-namei.unix@gmail.com> <1355725047-5096-1-git-send-email-namei.unix@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1355725047-5096-1-git-send-email-namei.unix@gmail.com> Subject: Re: [Qemu-devel] [PATCH v2 1/2] sheepdog: don't update inode when create_and_write fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Yuan Cc: Kevin Wolf , qemu-devel@nongnu.org, MORITA Kazutaka On Mon, Dec 17, 2012 at 02:17:26PM +0800, Liu Yuan wrote: > From: Liu Yuan > > For the error case such as SD_RES_NO_SPACE, we shouldn't update the inode bitmap > to avoid the scenario that the object is allocated but wasn't created at the > server side. This will result in VM's IO error on the failed object. > > Cc: MORITA Kazutaka > Cc: Kevin Wolf > Signed-off-by: Liu Yuan > --- > block/sheepdog.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Thanks, applied to the block tree: https://github.com/stefanha/qemu/commits/block Stefan