]> Git Repo - qemu.git/commit
qcow2: Extract code from get_cluster_offset() (Laurent Vivier)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 14 Aug 2008 18:07:12 +0000 (18:07 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 14 Aug 2008 18:07:12 +0000 (18:07 +0000)
commit108534b9681579002f46942139a77732a2510436
treed1a52d8b2f15e3b5adb1cb2558eb18760a125942
parent16b98a97a95274a4e8522f0f6610ea7f71014c0c
qcow2: Extract code from get_cluster_offset() (Laurent Vivier)

Extract code from get_cluster_offset() into new functions:

- seek_l2_table()

Search an l2 offset in the l2_cache table.

- l2_load()

Read the l2 entry from disk

- l2_allocate()

Allocate a new l2 entry.

Some comment fixups from Kevin Wolf

Signed-off-by: Laurent Vivier <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5003 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow2.c
This page took 0.02451 seconds and 4 git commands to generate.