Received: from eggs.gnu.org ([208.118.235.92]:55513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCo3a-0001Ef-JE for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:21:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCo3Z-0005Tn-CL for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:21:10 -0500 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:54201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCo3Z-0005Tj-6O for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:21:09 -0500 Received: by mail-we0-f179.google.com with SMTP id p43so5864834wea.10 for ; Tue, 05 Mar 2013 01:21:08 -0800 (PST) Date: Tue, 5 Mar 2013 10:21:05 +0100 From: Stefan Hajnoczi Message-ID: <20130305092105.GB1938@stefanha-thinkpad.redhat.com> References: <1361875228-15769-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1361875228-15769-10-git-send-email-xiawenc@linux.vnet.ibm.com> <874ngxhhfv.fsf@blackfin.pond.sub.org> <20130227162229.GJ2514@dhcp-200-207.str.redhat.com> <513009B9.4090406@linux.vnet.ibm.com> <20130304130222.GB18476@stefanha-thinkpad.redhat.com> <51359AB4.4030501@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51359AB4.4030501@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: Kevin Wolf , aliguori@us.ibm.com, Markus Armbruster , qemu-devel@nongnu.org, lcapitulino@redhat.com, pbonzini@redhat.com On Tue, Mar 05, 2013 at 03:11:48PM +0800, Wenchao Xia wrote: > 于 2013-3-4 21:02, Stefan Hajnoczi 写道: > >On Fri, Mar 01, 2013 at 09:51:53AM +0800, Wenchao Xia wrote: > 于 2013-2-28 0:22, Kevin Wolf 写道: > >>>Am 27.02.2013 um 17:04 hat Markus Armbruster geschrieben: > >>>>Wenchao Xia writes: > >>>> > >>>>>Signed-off-by: Wenchao Xia > >>>>>Reviewed-by: Eric Blake > >>>>>--- > >>>>> block.c | 24 ++++++++++++++++++++++++ > >>>>> include/block/block.h | 2 ++ > >>>>> savevm.c | 22 ---------------------- > >>>>> 3 files changed, 26 insertions(+), 22 deletions(-) > >>>> > >>>>Perhaps savevm.c isn't the best home for snapshot stuff, but I don't > >>>>like it in block.c any better. block.c is already unwieldy, and I'd > >>>>like us to try limiting it to core block stuff. > >>>> > >>>>Kevin, Stefan, any ideas? > >>> > >>>Take some more snapshot related functions from block.c and move them to > >>>block/snapshot.c? > >>> > >>>Kevin > >>> > >>Hi, Stefan > >> Do you also agree about adding new file block/snapshot.c? > > > >Yes, I agree. > > > >Stefan > > > great. Also there are some other functions such as image info > collecting, do you think new file block/misc.c is suitable > to store those functions there? As discussed on IRC, it's fine by me. If a better way to organize these functions becomes clear in the future they can be moved. Stefan