Re: Question on Compression for Raw Image

2020-10-20 Thread Alberto Garcia
On Tue 20 Oct 2020 04:32:23 PM CEST, Eric Blake wrote: > My recommendation would be implementing a new BDS filter that does > uncompression. Then, you could do things like: > > raw -> decompress -> file.xz This would work, although read-only and you would need a compression format that supports

Re: Question on Compression for Raw Image

2020-10-20 Thread Richard W.M. Jones
On Tue, Oct 20, 2020 at 09:32:23AM -0500, Eric Blake wrote: > On 10/20/20 9:22 AM, Wang, Wei W wrote: > > On Tuesday, October 20, 2020 4:01 PM, Kevin Wolf wrote: > >> Am 20.10.2020 um 03:31 hat Wang, Wei W geschrieben: > >>> Hi, > >>> > >>> Does anyone know the reason why raw-format.c doesn't have

RE: Question on Compression for Raw Image

2020-10-20 Thread Alberto Garcia
On Tue 20 Oct 2020 04:22:43 PM CEST, Wang, Wei W wrote: > Ok, thanks. I'm thinking QEMU could do decompression of the compressed > data in raw.img when guest reads data. The qcow2 format already supports compression and it's already transparent to the guest, so you can use that. As Kevin said

Re: Question on Compression for Raw Image

2020-10-20 Thread Eric Blake
On 10/20/20 9:22 AM, Wang, Wei W wrote: > On Tuesday, October 20, 2020 4:01 PM, Kevin Wolf wrote: >> Am 20.10.2020 um 03:31 hat Wang, Wei W geschrieben: >>> Hi, >>> >>> Does anyone know the reason why raw-format.c doesn't have >> compression >>> support (but qcow has the supported added)? For

RE: Question on Compression for Raw Image

2020-10-20 Thread Wang, Wei W
On Tuesday, October 20, 2020 4:01 PM, Kevin Wolf wrote: > Am 20.10.2020 um 03:31 hat Wang, Wei W geschrieben: > > Hi, > > > > Does anyone know the reason why raw-format.c doesn't have > compression > > support (but qcow has the supported added)? For example, raw image > > backup with compression,

Re: Question on Compression for Raw Image

2020-10-20 Thread Kevin Wolf
Am 20.10.2020 um 03:31 hat Wang, Wei W geschrieben: > Hi, > > Does anyone know the reason why raw-format.c doesn't have compression > support (but qcow has the supported added)? For example, raw image > backup with compression, "qemu-img convert -c -O raw origin.img > dist.img", doesn't work. A