Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-10 Thread Kevin Wolf
Am 09.03.2011 19:08, schrieb Dushyant Bansal: > On Tuesday 08 March 2011 05:17 PM, Kevin Wolf wrote: >> This adds a description of the qcow2 file format to the docs/ directory. >> Besides documenting what's there, which is never wrong, the document should >> provide a good basis for the discussion

Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-09 Thread Stefan Hajnoczi
On Wed, Mar 9, 2011 at 6:08 PM, Dushyant Bansal wrote: > On Tuesday 08 March 2011 05:17 PM, Kevin Wolf wrote: >> +    l2_entries = (cluster_size / sizeof(uint64_t)) >> + >> +    l2_index = (offset / cluster_size) % l2_entries >> +    l1_index = (offset / cluster_size) / l2_entries >> + >> +    l2_

Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-09 Thread Dushyant Bansal
On Tuesday 08 March 2011 05:17 PM, Kevin Wolf wrote: This adds a description of the qcow2 file format to the docs/ directory. Besides documenting what's there, which is never wrong, the document should provide a good basis for the discussion of format extensions (called "qcow3" in previous discus

Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-08 Thread Stefan Hajnoczi
On Tue, Mar 8, 2011 at 1:31 PM, Kevin Wolf wrote: > Am 08.03.2011 14:13, schrieb Stefan Hajnoczi: >> On Tue, Mar 8, 2011 at 11:47 AM, Kevin Wolf wrote: >>> +         20 - 23:   cluster_bits >>> +                    Number of bits that are used for addressing an offset >>> +                    wit

Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-08 Thread Kevin Wolf
Am 08.03.2011 14:13, schrieb Stefan Hajnoczi: > On Tue, Mar 8, 2011 at 11:47 AM, Kevin Wolf wrote: >> + 20 - 23: cluster_bits >> +Number of bits that are used for addressing an offset >> +within a cluster (1 << cluster_bits is the cluster size) >>

Re: [Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-08 Thread Stefan Hajnoczi
On Tue, Mar 8, 2011 at 11:47 AM, Kevin Wolf wrote: > +         20 - 23:   cluster_bits > +                    Number of bits that are used for addressing an offset > +                    within a cluster (1 << cluster_bits is the cluster size) > + > +         24 - 31:   size > +                  

[Qemu-devel] [PATCH] Add qcow2 documentation

2011-03-08 Thread Kevin Wolf
This adds a description of the qcow2 file format to the docs/ directory. Besides documenting what's there, which is never wrong, the document should provide a good basis for the discussion of format extensions (called "qcow3" in previous discussions) Signed-off-by: Kevin Wolf --- docs/specs/qcow