[Qemu-devel] how to convert the file block using ext4 to the offset in the virtual disk

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 file block(347008) using ext4 to the offset in the virtual disk. Please help me. the file block in

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 is