Re: [Qemu-devel] [PATCH 0/2] block: commits of snapshots larger than backing files

2014-01-17 Thread Jeff Cody
On Fri, Jan 17, 2014 at 03:17:10PM +0800, Stefan Hajnoczi wrote: > On Mon, Jan 13, 2014 at 03:18:44PM -0500, Jeff Cody wrote: > > If a snapshot is larger than a backing file, then the offline bdrv_commit > > and > > the live active layer commit will fail with an i/o error (usually). A live > > co

Re: [Qemu-devel] [PATCH 0/2] block: commits of snapshots larger than backing files

2014-01-16 Thread Stefan Hajnoczi
On Mon, Jan 13, 2014 at 03:18:44PM -0500, Jeff Cody wrote: > If a snapshot is larger than a backing file, then the offline bdrv_commit and > the live active layer commit will fail with an i/o error (usually). A live > commit of a non-active layer will complete successfully, as it runs > bdrv_trunc

[Qemu-devel] [PATCH 0/2] block: commits of snapshots larger than backing files

2014-01-13 Thread Jeff Cody
If a snapshot is larger than a backing file, then the offline bdrv_commit and the live active layer commit will fail with an i/o error (usually). A live commit of a non-active layer will complete successfully, as it runs bdrv_truncate() on the backing image to resize it to the larger size. For bo