Received: from eggs.gnu.org ([2001:4830:134:3::10]:43488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqBp8-0000na-BC for qemu-devel@nongnu.org; Sun, 16 Nov 2014 21:13:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqBp2-0000hy-0m for qemu-devel@nongnu.org; Sun, 16 Nov 2014 21:13:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqBp1-0000hp-Pi for qemu-devel@nongnu.org; Sun, 16 Nov 2014 21:13:43 -0500 Date: Mon, 17 Nov 2014 10:14:04 +0800 From: Fam Zheng Message-ID: <20141117021404.GA2218@fam-t430.nay.redhat.com> References: <1415938161-16217-1-git-send-email-famz@redhat.com> <20141114092912.GA16718@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141114092912.GA16718@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH] vmdk: Leave bdi intact if -ENOTSUP in vmdk_get_info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , Max Reitz On Fri, 11/14 09:29, Stefan Hajnoczi wrote: > On Fri, Nov 14, 2014 at 12:09:21PM +0800, Fam Zheng wrote: > > When extent types don't match, we return -ENOTSUP. In this case, be > > polite to the caller and don't modify bdi. > > > > Signed-off-by: Fam Zheng > > --- > > block/vmdk.c | 20 +++++++++++++------- > > 1 file changed, 13 insertions(+), 7 deletions(-) > > At this stage of the release process it would be very helpful to include > some context for this patch: is it a pure cleanup or actually a bug fix > that needs to go into QEMU 2.2? This one is more of a cleanup than bug fix: although there is a small logical change, it's only visible to user on abnormally structured VMDK (mixed extent type, etc.) that require manual editing image file, which is AFAIK not a valid use case and will not cause anything worse than an error. I sent the patch mostly for the function semantic purpose: don't change caller's data unless it's necessary to. > > Since you are a regular contributor and I therefore trust you, I have > merged this patch. But please be clear in commit descriptions about > whether or not a patch is a bug fix (how to reproduce the bug, if a > previous commit's regression is being fixed, etc). OK. I'll remember next time. Thanks for pointing out. Fam