{"push_id":3121799817,"size":1,"distinct_size":1,"ref":"refs/heads/nbd","head":"a3a7b032958717054e3bff118b0a405bf5a950eb","before":"bd526458b44c64b32b2424dd1acb7aac34062c45","commits":[{"sha":"a3a7b032958717054e3bff118b0a405bf5a950eb","author":{"name":"Nir Soffer","email":"60258c486a9660a474d408e6013543d2add80a76@redhat.com"},"message":"nbd: Implement zero\n\nAdd zero(start, length) method sending NBD_CMD_WRITE_ZEROES command.\n\nUpdate the example nbd tool to map data and zero ranges in the source\nimage and send zero areas efficiently.\n\nHere is an example session uploading sparse images.\n\nCreating 6g sparse source image:\n\n$ virt-builder fedora-27 -o /var/tmp/fedora-27.img\n\nCreating qcow2 destination image:\n\n$ qemu-img create -f qcow2 /var/tmp/fedora-27.qcow2 6g\n\nServing image with qemu-nbd, supporting discard:\n\n$ qemu-nbd \\\n      --socket /tmp/nbd.sock \\\n      --format qcow2 \\\n      --export-name=  \\\n      --persistent \\\n      --cache=none \\\n      --aio=native \\\n      --discard=unmap \\\n      /var/tmp/fedora-27.qcow2\n\nCopying image to qcow2 image (best of 10 runs):\n\n$ time PYTHONPATH=common python examples/nbd.py upload /var/tmp/fedora-27.img /tmp/nbd.sock\n[ 100.00% ] 6.00 GiB, 3.59 seconds, 1709.11 MiB/s\n\nreal\t0m3.638s\nuser\t0m0.072s\nsys\t0m0.688s\n\nSame operation with qemu-img (best of 10 runs):\n\n$ time qemu-img convert -n -p -f raw -O raw /var/tmp/fedora-27.img nbd:unix:/tmp/nbd.sock\n    (100.00/100%)\n\nreal\t0m5.435s\nuser\t0m0.125s\nsys\t0m0.772s\n\nChange-Id: I61462a6b8692948c573114800df31914c78c2e6c\nSigned-off-by: Nir Soffer <nsoffer@redhat.com>","distinct":true,"url":"https://api.github.com/repos/nirs/ovirt-imageio/commits/a3a7b032958717054e3bff118b0a405bf5a950eb"}]}
{"actor":{"display_login":"nirs"}}