Re: [Qemu-devel] [PATCH] qemu-img: refuse to compress files with invalid size

2013-04-14 Thread Stefan Hajnoczi
On Fri, Apr 12, 2013 at 02:04:41PM -0600, Eric Blake wrote: > On 04/12/2013 01:55 PM, Benoît Canet wrote: > > Le Friday 12 Apr 2013 à 19:37:48 (+0200), Stefan Hajnoczi a écrit : > >> Image file compression works at cluster granularity. It is not possible > >> to compress less than a cluster of dat

Re: [Qemu-devel] [PATCH] qemu-img: refuse to compress files with invalid size

2013-04-12 Thread Eric Blake
On 04/12/2013 01:55 PM, Benoît Canet wrote: > Le Friday 12 Apr 2013 à 19:37:48 (+0200), Stefan Hajnoczi a écrit : >> Image file compression works at cluster granularity. It is not possible >> to compress less than a cluster of data at a time. Shouldn't it be possible to treat a file that is not r

Re: [Qemu-devel] [PATCH] qemu-img: refuse to compress files with invalid size

2013-04-12 Thread Benoît Canet
Le Friday 12 Apr 2013 à 19:37:48 (+0200), Stefan Hajnoczi a écrit : > Image file compression works at cluster granularity. It is not possible > to compress less than a cluster of data at a time. > > Print an error when attempting qemu-img convert -c with an input file > that is not a multiple of