Re: [Qemu-devel] DMG chunk size independence

2017-04-25 Thread Ashijeet Acharya
Hi, cc'ing Peter Wu in... Currently I have completed the task for zlib, uncompressed and zeroed chunks in a DMG file using the approach we discussed earlier. Unfortunately, this approach is not appropriate for bz2 chunks since we cannot restart our decompression from the access point we cached

Re: [Qemu-devel] DMG chunk size independence

2017-04-25 Thread Peter Wu
On Mon, Apr 24, 2017 at 05:19:48PM -0400, John Snow wrote: > > > On 04/23/2017 05:03 AM, Ashijeet Acharya wrote: > > Hi, > > > > Great news! > > I have almost completed this task and the results are looking > > promising. I have not yet attended to the DMG files having bz2 > > compressed chunks

Re: [Qemu-devel] DMG chunk size independence

2017-04-24 Thread Ashijeet Acharya
>> For testing I am first converting the images to raw format and then >> comparing the resulting image with the one converted using v2.9.0 DMG >> driver and after battling for 2 days with my code, it finally prints >> "Images are identical." According to John, that should be pretty >> conclusive

Re: [Qemu-devel] DMG chunk size independence

2017-04-24 Thread John Snow
On 04/23/2017 05:03 AM, Ashijeet Acharya wrote: > Hi, > > Great news! > I have almost completed this task and the results are looking > promising. I have not yet attended to the DMG files having bz2 > compressed chunks but that should be easy and pretty similar to my > approach for zlib

Re: [Qemu-devel] DMG chunk size independence

2017-04-23 Thread Ashijeet Acharya
Hi, Great news! I have almost completed this task and the results are looking promising. I have not yet attended to the DMG files having bz2 compressed chunks but that should be easy and pretty similar to my approach for zlib compressed files. So, no worries there. For testing I am first

Re: [Qemu-devel] DMG chunk size independence

2017-04-18 Thread Ashijeet Acharya
On Tue, Apr 18, 2017 at 10:35 PM, John Snow wrote: > >> >> I could be wrong, but that's my hunch. >> >> Maybe you can cache the state of the INFLATE process such that once you >> fill the cache with data, we can simply resume the INFLATE procedure >> when the

Re: [Qemu-devel] DMG chunk size independence

2017-04-18 Thread John Snow
On 04/18/2017 06:21 AM, Ashijeet Acharya wrote: > > On Tue, Apr 18, 2017 at 01:59 John Snow > wrote: > > > > On 04/15/2017 04:38 AM, Ashijeet Acharya wrote: > > Hi, > > > > Some of you are already aware but for the benefit of the

Re: [Qemu-devel] DMG chunk size independence

2017-04-18 Thread Kevin Wolf
Am 15.04.2017 um 10:38 hat Ashijeet Acharya geschrieben: > Hi, > > Some of you are already aware but for the benefit of the open list, > this mail is regarding the task mentioned > Here -> http://wiki.qemu-project.org/ToDo/Block/DmgChunkSizeIndependence > > I had a chat with Fam regarding this

Re: [Qemu-devel] DMG chunk size independence

2017-04-18 Thread Ashijeet Acharya
On Tue, Apr 18, 2017 at 01:59 John Snow wrote: > > > On 04/15/2017 04:38 AM, Ashijeet Acharya wrote: > > Hi, > > > > Some of you are already aware but for the benefit of the open list, > > this mail is regarding the task mentioned > > Here ->

Re: [Qemu-devel] DMG chunk size independence

2017-04-17 Thread John Snow
On 04/15/2017 04:38 AM, Ashijeet Acharya wrote: > Hi, > > Some of you are already aware but for the benefit of the open list, > this mail is regarding the task mentioned > Here -> http://wiki.qemu-project.org/ToDo/Block/DmgChunkSizeIndependence > OK, so the idea here is that we should be able

[Qemu-devel] DMG chunk size independence

2017-04-15 Thread Ashijeet Acharya
Hi, Some of you are already aware but for the benefit of the open list, this mail is regarding the task mentioned Here -> http://wiki.qemu-project.org/ToDo/Block/DmgChunkSizeIndependence I had a chat with Fam regarding this and he suggested a solution where we fix the output buffer size to a max