Miguel Di Ciurcio Filho f920991574 monitor: make 'info snapshots' show only fully available snapshots
The output generated by 'info snapshots' shows only snapshots that exist on the
block device that saves the VM state. This output can cause an user to
erroneously try to load an snapshot that is not available on all block devices.

$ qemu-img snapshot -l xxtest.qcow2
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
1                                1.5M 2010-07-26 16:51:52   00:00:08.599
2                                1.5M 2010-07-26 16:51:53   00:00:09.719
3                                1.5M 2010-07-26 17:26:49   00:00:13.245
4                                1.5M 2010-07-26 19:01:00   00:00:46.763

$ qemu-img snapshot -l xxtest2.qcow2
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
3                                   0 2010-07-26 17:26:49   00:00:13.245
4                                   0 2010-07-26 19:01:00   00:00:46.763

Current output:
$ qemu -hda xxtest.qcow2 -hdb xxtest2.qcow2 -monitor stdio -vnc :0
QEMU 0.12.4 monitor - type 'help' for more information
(qemu) info snapshots
Snapshot devices: ide0-hd0
Snapshot list (from ide0-hd0):
ID        TAG                 VM SIZE                DATE       VM CLOCK
1                                1.5M 2010-07-26 16:51:52   00:00:08.599
2                                1.5M 2010-07-26 16:51:53   00:00:09.719
3                                1.5M 2010-07-26 17:26:49   00:00:13.245
4                                1.5M 2010-07-26 19:01:00   00:00:46.763

Snapshots 1 and 2 do not exist on xxtest2.qcow, but they are displayed anyway.

This patch sumarizes the output to only show fully available snapshots.

New output:
(qemu) info snapshots
ID        TAG                 VM SIZE                DATE       VM CLOCK
3                                1.5M 2010-07-26 17:26:49   00:00:13.245
4                                1.5M 2010-07-26 19:01:00   00:00:46.763

Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-08-30 18:29:23 +02:00
2010-08-07 20:04:24 +04:00
2010-08-30 18:29:22 +02:00
2010-06-10 00:09:49 +02:00
2010-07-03 06:49:47 +00:00
2010-07-13 18:18:23 +02:00
2010-07-31 19:40:13 +00:00
2010-08-22 17:11:06 -05:00
2010-07-13 08:55:04 -05:00
2010-07-29 17:15:28 +02:00
2010-07-25 17:03:49 +02:00
2010-03-06 23:09:28 +01:00
2008-12-13 09:32:43 +00:00
2009-09-12 07:36:22 +00:00
2009-09-12 07:36:22 +00:00
2009-05-13 20:54:26 +01:00
2009-09-25 19:53:21 +00:00
2010-08-22 16:19:00 -05:00
2010-06-16 13:03:51 +01:00
2010-04-09 18:55:56 +02:00
2010-04-09 18:55:56 +02:00
2010-08-24 15:22:24 +00:00
2010-05-31 20:55:23 +02:00
2009-03-10 21:43:35 +00:00
2009-01-14 18:39:49 +00:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-07-22 05:52:09 +02:00
2010-05-24 15:18:23 -05:00
2010-03-17 11:16:15 -05:00
2010-04-01 21:51:59 +02:00
2010-04-01 21:51:59 +02:00
2010-03-01 04:39:50 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2010-06-13 19:00:50 +01:00
2009-09-12 07:36:22 +00:00
2010-07-24 14:42:29 +02:00
2010-06-16 13:03:51 +01:00
2010-03-29 19:24:00 +00:00
2009-12-17 18:12:04 +01:00
2010-05-22 08:02:12 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2010-05-10 11:36:03 -05:00
2010-05-10 11:36:03 -05:00
2010-06-11 15:25:14 -03:00
2009-11-17 08:49:39 -06:00
2009-11-17 08:49:39 -06:00
2008-12-14 08:50:18 +00:00
2010-06-16 13:03:51 +01:00
2010-02-06 19:24:42 +01:00
2010-07-26 17:35:54 -05:00
2010-03-21 08:28:47 +00:00
2010-05-22 08:24:49 +00:00
2010-07-26 17:36:14 -05:00
2010-01-08 09:58:40 -06:00
2009-09-12 07:36:22 +00:00
2010-08-30 18:29:22 +02:00
2010-08-30 18:29:22 +02:00
2010-08-22 17:11:06 -05:00
2010-06-13 19:00:50 +01:00
2010-08-20 21:03:24 +00:00
2010-08-15 09:45:28 +00:00
2010-06-27 19:25:25 +03:00
2010-08-15 09:45:28 +00:00
2009-12-25 18:19:15 +00:00
2010-05-19 12:45:54 -03:00
2009-11-17 08:49:39 -06:00
2010-07-01 14:27:13 -03:00
2010-07-01 14:27:13 -03:00
2009-10-27 12:28:59 -05:00
2010-08-24 15:22:24 +00:00
2010-07-30 23:05:51 +02:00
2009-10-01 16:12:16 -05:00
2010-06-15 09:41:59 +02:00
2010-08-30 18:29:22 +02:00
2010-05-19 12:45:54 -03:00
2010-07-06 10:36:28 -05:00
2010-05-19 12:45:54 -03:00
2009-11-17 08:49:38 -06:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-06-11 15:25:14 -03:00
2009-12-03 09:41:18 -06:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2008-12-14 08:50:18 +00:00
2009-09-13 19:38:43 +00:00
2010-03-14 22:04:50 +01:00
2008-12-04 11:29:42 +00:00
2009-10-01 16:12:16 -05:00
2010-06-30 22:51:17 +02:00
2009-03-05 23:01:23 +00:00
2010-07-28 07:58:15 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%