Re: [Qemu-devel] help with understanding qcow2 file format

2016-01-29 Thread lspnet
hi,I have read 2015-qcow2-expanded.pdf and qcow2.txt, so I understand how to convert the offset in the virtual disk to the offset into the image file(qcow2). but I wish to know how to convert the block using ext4 to the offset in the virtual disk. Please help me. the file block information

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-17 Thread Vasiliy Tolstov
2015-09-16 16:46 GMT+03:00 Eric Blake : > qemu-img map file.qcow2 > > Offset Length Mapped to File qemu-img: File contains external, encrypted or compressed clusters. > is a great way to learn which physical host offsets hold the data at > which guest

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-17 Thread Eric Blake
On 09/17/2015 01:07 AM, Vasiliy Tolstov wrote: > 2015-09-16 16:46 GMT+03:00 Eric Blake : > >> qemu-img map file.qcow2 >> >> > Offset Length Mapped to File > qemu-img: File contains external, encrypted or compressed clusters. qemu-img map --output=json

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-16 Thread Vasiliy Tolstov
2015-09-16 14:04 GMT+03:00 Laszlo Ersek : > All I can say is, "docs/specs/qcow2.txt". > Thanks! Can you provide me ordered steps that i need to do to get file contents? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru

[Qemu-devel] help with understanding qcow2 file format

2015-09-16 Thread Vasiliy Tolstov
Hi, I'm need help to understand qcow2 file format, can somebody explain to me, for example if i need to read 1K from offset 512? As i'm understand i need to calculate offset in qcow2 file using some things from header, can somebody explains my how can i do that? -- Vasiliy Tolstov, e-mail:

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-16 Thread Laszlo Ersek
On 09/16/15 12:56, Vasiliy Tolstov wrote: > Hi, I'm need help to understand qcow2 file format, can somebody explain > to me, for example if i need to read 1K from offset 512? > > As i'm understand i need to calculate offset in qcow2 file using some > things from header, can somebody explains my

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-16 Thread Markus Armbruster
Vasiliy Tolstov writes: > 2015-09-16 14:04 GMT+03:00 Laszlo Ersek : > >> All I can say is, "docs/specs/qcow2.txt". >> > > Thanks! Can you provide me ordered steps that i need to do to get file > contents?

Re: [Qemu-devel] help with understanding qcow2 file format

2015-09-16 Thread Eric Blake
On 09/16/2015 05:04 AM, Laszlo Ersek wrote: > On 09/16/15 12:56, Vasiliy Tolstov wrote: >> Hi, I'm need help to understand qcow2 file format, can somebody explain >> to me, for example if i need to read 1K from offset 512? >> >> As i'm understand i need to calculate offset in qcow2 file using some