Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-05-03 Thread Jes Sorensen
On 04/29/11 15:45, Anthony Liguori wrote: > On 04/29/2011 08:38 AM, Jes Sorensen wrote: >> It is exactly the same for the management tool: >> - Creation of the new image either succeeds or fails >> - Switchover either succeeds or fails > > Creating an image can be treated as an atomic operation.

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-29 Thread Anthony Liguori
On 04/29/2011 08:38 AM, Jes Sorensen wrote: On 04/28/11 17:10, Anthony Liguori wrote: No, the command does too many things and as such, makes it impossible for a management tool to gracefully recover. It is exactly the same for the management tool: - Creation of the new image either succeeds o

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-29 Thread Jes Sorensen
On 04/28/11 17:10, Anthony Liguori wrote: > On 04/28/2011 09:57 AM, Jes Sorensen wrote: >> On 04/28/11 16:46, Anthony Liguori wrote: >> Sorry this is inherently broken. The management tool should not be >> keeping state in this process. I agree an async interface would be nice, >> but the above pro

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Anthony Liguori
On 04/28/2011 09:57 AM, Jes Sorensen wrote: On 04/28/11 16:46, Anthony Liguori wrote: On 04/28/2011 09:38 AM, Jes Sorensen wrote: Sorry but this is utterly bogus. The snapshot support as is works fine, and the command is in the monitor. We should expose it in QMP as well. It went in for the

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/28/11 16:46, Anthony Liguori wrote: > On 04/28/2011 09:38 AM, Jes Sorensen wrote: >> >> Sorry but this is utterly bogus. >> >> The snapshot support as is works fine, and the command is in the >> monitor. We should expose it in QMP as well. > > It went in for the monitor because it was consid

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Anthony Liguori
On 04/28/2011 09:38 AM, Jes Sorensen wrote: Sorry but this is utterly bogus. The snapshot support as is works fine, and the command is in the monitor. We should expose it in QMP as well. It went in for the monitor because it was considered an imperfect command so we held up the QMP side beca

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/28/11 16:42, Kevin Wolf wrote: > What type of file system is your /tmp? You need to provide full path to > the snapshot file if you don't want it created next to where your > qemu > binary is being executed. >>> >> I think the problem is that this is a temporar

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Kevin Wolf
Am 28.04.2011 15:46, schrieb Jes Sorensen: > On 04/28/11 15:41, Kevin Wolf wrote: Finally, what's the expect behavior when -snapshot is used? I'm getting >> this: >> >> (qemu) snapshot_blkdev ide0-hd0 snap-test >> Could not open '/tmp/vl.6w8YXA' >> (qemu) What

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/28/11 16:36, Anthony Liguori wrote: > On 04/27/2011 10:05 AM, Luiz Capitulino wrote: >> On Mon, 18 Apr 2011 16:27:01 +0200 >> jes.soren...@redhat.com wrote: >> >>> From: Jes Sorensen >>> >>> This is quivalent to snapshot_blkdev in the human monitor, with _sync >>> added to the command name to

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Anthony Liguori
On 04/28/2011 09:21 AM, Luiz Capitulino wrote: On Thu, 28 Apr 2011 15:21:41 +0200 Jes Sorensen wrote: On 04/27/11 17:05, Luiz Capitulino wrote: +If a new image file is specified, the new image file will become the +new root image. If format is specified, the snapshot file will be +created in

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Anthony Liguori
On 04/27/2011 10:05 AM, Luiz Capitulino wrote: On Mon, 18 Apr 2011 16:27:01 +0200 jes.soren...@redhat.com wrote: From: Jes Sorensen This is quivalent to snapshot_blkdev in the human monitor, with _sync added to the command name to make it explicit that the command is synchronous and leave spac

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/28/11 16:21, Luiz Capitulino wrote: > On Thu, 28 Apr 2011 15:21:41 +0200 > Jes Sorensen wrote: > >> On 04/27/11 17:05, Luiz Capitulino wrote: >>> All arguments should be mandatory in QMP, IMO. >> >> Sorry, but there is absolutely no reason to make all arguments >> mandatory. Sure it can be

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Luiz Capitulino
On Thu, 28 Apr 2011 15:21:41 +0200 Jes Sorensen wrote: > On 04/27/11 17:05, Luiz Capitulino wrote: > >> +If a new image file is specified, the new image file will become the > >> > +new root image. If format is specified, the snapshot file will be > >> > +created in that format. Otherwise the sna

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/28/11 15:41, Kevin Wolf wrote: >>> Finally, what's the expect behavior when -snapshot is used? I'm getting >>> >> this: >>> >> >>> >> (qemu) snapshot_blkdev ide0-hd0 snap-test >>> >> Could not open '/tmp/vl.6w8YXA' >>> >> (qemu) >> > >> > What type of file system is your /tmp? You need to

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Kevin Wolf
Am 28.04.2011 15:21, schrieb Jes Sorensen: > On 04/27/11 17:05, Luiz Capitulino wrote: >>> +If a new image file is specified, the new image file will become the +new root image. If format is specified, the snapshot file will be +created in that format. Otherwise the snapshot will be inter

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/27/11 17:05, Luiz Capitulino wrote: >> +If a new image file is specified, the new image file will become the >> > +new root image. If format is specified, the snapshot file will be >> > +created in that format. Otherwise the snapshot will be internal! >> > +(currently unsupported). > Sorry fo

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/27/11 17:05, Luiz Capitulino wrote: >> > +Synchronous snapshot of block device, using snapshot file as target >> > +if provided. > It's not optional in HMP: > > (qemu) snapshot_blkdev ide0-hd0 > Parameter 'snapshot_file' is missing > (qemu) > The parameter is optional in HMP, however i

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-28 Thread Jes Sorensen
On 04/27/11 17:05, Jes Sorensen wrote: > On 04/27/11 17:05, Luiz Capitulino wrote: >> On Mon, 18 Apr 2011 16:27:01 +0200 >> jes.soren...@redhat.com wrote: >> >>> From: Jes Sorensen >>> >>> This is quivalent to snapshot_blkdev in the human monitor, with _sync >>> added to the command name to make i

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-27 Thread Jes Sorensen
On 04/27/11 17:05, Luiz Capitulino wrote: > On Mon, 18 Apr 2011 16:27:01 +0200 > jes.soren...@redhat.com wrote: > >> From: Jes Sorensen >> >> This is quivalent to snapshot_blkdev in the human monitor, with _sync >> added to the command name to make it explicit that the command is >> synchronous a

Re: [Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-27 Thread Luiz Capitulino
On Mon, 18 Apr 2011 16:27:01 +0200 jes.soren...@redhat.com wrote: > From: Jes Sorensen > > This is quivalent to snapshot_blkdev in the human monitor, with _sync > added to the command name to make it explicit that the command is > synchronous and leave space for a future async version. I'm not

[Qemu-devel] [PATCH v2 1/1] Add QMP bits for blockdev-snapshot-sync.

2011-04-18 Thread Jes . Sorensen
From: Jes Sorensen This is quivalent to snapshot_blkdev in the human monitor, with _sync added to the command name to make it explicit that the command is synchronous and leave space for a future async version. Signed-off-by: Jes Sorensen --- qmp-commands.hx | 26 ++