From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPGGg-0007Bw-0D for qemu-devel@nongnu.org; Thu, 17 Jun 2010 10:40:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPGGa-0000wI-ST for qemu-devel@nongnu.org; Thu, 17 Jun 2010 10:40:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37349) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPGGa-0000w8-J7 for qemu-devel@nongnu.org; Thu, 17 Jun 2010 10:40:28 -0400 Date: Thu, 17 Jun 2010 11:40:20 -0300 From: Luiz Capitulino Message-ID: <20100617114020.587d9745@redhat.com> In-Reply-To: <1276779517-2974-1-git-send-email-miguel.filho@gmail.com> References: <1276779517-2974-1-git-send-email-miguel.filho@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v2] monitor: Really show snapshot information about all devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miguel Di Ciurcio Filho Cc: kwolf@redhat.com, clalance@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com On Thu, 17 Jun 2010 09:58:37 -0300 Miguel Di Ciurcio Filho wrote: > The 'info snapshots' monitor command does not show snapshot information from all > available block devices. > > Usage example: > $ qemu -hda disk1.qcow2 -hdb disk2.qcow2 > > (qemu) info snapshots > Snapshot devices: ide0-hd0 > Snapshot list (from ide0-hd0): > ID TAG VM SIZE DATE VM CLOCK > 1 1.5M 2010-05-26 21:51:02 00:00:03.263 > 2 1.5M 2010-05-26 21:51:09 00:00:08.844 > 3 1.5M 2010-05-26 21:51:24 00:00:23.274 > 4 1.5M 2010-05-26 21:53:17 00:00:03.595 > > In the above case, disk2.qcow2 has snapshot information, but it is not being > shown. Only the first device is always shown. > > This patch updates the do_info_snapshots() function do correctly show snapshot > information about all available block devices. > > New output: > (qemu) info snapshots > Snapshot list from ide0-hd0 (VM state image): > ID TAG VM SIZE DATE VM CLOCK > 1 1.5M 2010-05-26 21:51:02 00:00:03.263 > 2 1.5M 2010-05-26 21:51:09 00:00:08.844 > 3 1.5M 2010-05-26 21:51:24 00:00:23.274 > 4 1.5M 2010-05-26 21:53:17 00:00:03.595 > > Snapshot list from ide0-hd1: > ID TAG VM SIZE DATE VM CLOCK > 1 0 2010-05-26 21:51:02 00:00:03.263 > 2 0 2010-05-26 21:51:09 00:00:08.844 > 3 0 2010-05-26 21:51:24 00:00:23.274 > 4 0 2010-05-26 21:53:17 00:00:03.595 I agree we need this info somewhere, but I'm wondering if this output won't get users confused. Perhaps it would be perfect to have 'info snapshots -a', but the user Monitor don't support passing options to info commands. Suggestions?