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

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

2013-02-28 Thread Markus Armbruster
Dietmar Maurer 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-fil

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" } } > <- { "retu

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

2013-02-28 Thread Markus Armbruster
Dietmar Maurer 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 that

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

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 writes: > >> We use a generic BackupDriver struct to encapsulate all archive format >> related function. >> >> +# @backup: >> +# >> +# Starts a VM backup

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 writes: > We use a generic BackupDriver struct to encapsulate all archive format > related function. > > Another option would be to simply dump to > the output fh (pipe), and an external binary saves the data

[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 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. Signed-off-by: Dietmar Maurer