Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Markus Armbruster
Dietmar Maurer diet...@proxmox.com writes: +# @devlist: #optional list of block device names (separated by ',', ';' +# or ':'). By default the backup includes all writable block devices. Make this a proper list, please. That is, make it a JSON array: '*devlist' : [ 'str' ] Any time

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Dietmar Maurer
You can easily extend the API to allow multiple backups (In a fully backwards compatible way). So there is no need to change that now. I disagree. You propose something like: 1. - { execute: backup, arguments: { backup-file: foo.vma } } - { return: {

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Markus Armbruster
Dietmar Maurer diet...@proxmox.com writes: You can easily extend the API to allow multiple backups (In a fully backwards compatible way). So there is no need to change that now. I disagree. You propose something like: 1. - { execute: backup, arguments: { backup-file:

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Dietmar Maurer
With multiple backup support, we still need to keep it working unchanged when no or just one backup is executing. When more are executing, we have to make it fail, unless an optional argument is given. Again, unnecessary complexity. Moreover, omitting the optional

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-27 Thread Markus Armbruster
First pass, concentrating on interfaces, implementation mostly ignored. Dietmar Maurer diet...@proxmox.com writes: We use a generic BackupDriver struct to encapsulate all archive format related function. Another option would be to simply dump devid,cluster_num,cluster_data to the output fh

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-27 Thread Eric Blake
On 02/27/2013 03:31 AM, Markus Armbruster wrote: First pass, concentrating on interfaces, implementation mostly ignored. Dietmar Maurer diet...@proxmox.com writes: We use a generic BackupDriver struct to encapsulate all archive format related function. +# @backup: +# +# Starts a VM

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-27 Thread Dietmar Maurer
+# @devlist: #optional list of block device names (separated by ',', ';' +# or ':'). By default the backup includes all writable block devices. Make this a proper list, please. That is, make it a JSON array: '*devlist' : [ 'str' ] Any time that you pass a string through JSON that

[Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-21 Thread Dietmar Maurer
We use a generic BackupDriver struct to encapsulate all archive format related function. Another option would be to simply dump devid,cluster_num,cluster_data to the output fh (pipe), and an external binary saves the data. That way we could move the whole archive format related code out of qemu.