Re: [PATCH 4/6] qemu-nbd: add compression flag support

2019-10-02 Thread Vladimir Sementsov-Ogievskiy
01.10.2019 23:47, Eric Blake wrote: > On 10/1/19 2:27 PM, Andrey Shinkevich wrote: >> Added possibility to write compressed data by using the >> blk_write_compressed. This action has the limitations of the format >> driver. For example we can't write compressed data over other. >> > >> +++

Re: [PATCH 4/6] qemu-nbd: add compression flag support

2019-10-01 Thread Eric Blake
On 10/1/19 2:27 PM, Andrey Shinkevich wrote: Added possibility to write compressed data by using the blk_write_compressed. This action has the limitations of the format driver. For example we can't write compressed data over other. +++ b/blockdev-nbd.c @@ -191,7 +191,7 @@ void

[PATCH 4/6] qemu-nbd: add compression flag support

2019-10-01 Thread Andrey Shinkevich
Added possibility to write compressed data by using the blk_write_compressed. This action has the limitations of the format driver. For example we can't write compressed data over other. $ ./qemu-img create -f qcow2 -o size=10G ./image.qcow2 $ sudo ./qemu-nbd -c /dev/nbd0 ./image.qcow2 $ sudo dd