From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMZp4-0006e9-Lp for qemu-devel@nongnu.org; Fri, 22 Jan 2016 06:24:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMZp1-0004ZG-Go for qemu-devel@nongnu.org; Fri, 22 Jan 2016 06:24:10 -0500 Sender: Paolo Bonzini References: <1453307106-28330-1-git-send-email-kwolf@redhat.com> <1453307106-28330-13-git-send-email-kwolf@redhat.com> From: Paolo Bonzini Message-ID: <56A21154.8070504@redhat.com> Date: Fri, 22 Jan 2016 12:24:04 +0100 MIME-Version: 1.0 In-Reply-To: <1453307106-28330-13-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 12/17] qcow2: Implement .bdrv_inactivate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org On 20/01/2016 17:25, Kevin Wolf wrote: > + ret = qcow2_cache_flush(bs, s->refcount_block_cache); > + if (ret) { > + result = ret; > + error_report("Failed to flush the refcount block cache: %s", > + strerror(-ret)); > + } > + > + if (result == 0) { > + qcow2_mark_clean(bs); Should you return an error if qcow2_mark_clean does? (Coverity noticed that its return value is usually checked). Paolo > + } > + > + return result;