Statistics
| Branch: | Revision:

root / block @ 5ee163e8

Name Size
Makefile.objs 912 Bytes
backup.c 11.8 kB
blkdebug.c 17.4 kB
blkverify.c 11.7 kB
bochs.c 7.1 kB
cloop.c 5.9 kB
commit.c 7.3 kB
cow.c 9.6 kB
curl.c 19 kB
dmg.c 10.3 kB
gluster.c 19.8 kB
iscsi.c 36.5 kB
linux-aio.c 5.5 kB
mirror.c 18.7 kB
nbd.c 19 kB
parallels.c 4.8 kB
qapi.c 15.1 kB
qcow.c 27.8 kB
qcow2-cache.c 7.8 kB
qcow2-cluster.c 44 kB
qcow2-refcount.c 44.5 kB
qcow2-snapshot.c 18.7 kB
qcow2.c 53.8 kB
qcow2.h 13 kB
qed-check.c 6.5 kB
qed-cluster.c 5.1 kB
qed-gencb.c 688 Bytes
qed-l2-cache.c 5.9 kB
qed-table.c 8.4 kB
qed.c 46 kB
qed.h 10.8 kB
raw-aio.h 1.6 kB
raw-posix.c 49.6 kB
raw-win32.c 16.5 kB
raw.c 4.4 kB
rbd.c 26.2 kB
sheepdog.c 64.2 kB
snapshot.c 4.1 kB
ssh.c 29.2 kB
stream.c 6.7 kB
vdi.c 24.8 kB
vhdx.c 30.4 kB
vhdx.h 14.8 kB
vmdk.c 54.3 kB
vpc.c 23.7 kB
vvfat.c 84.5 kB
win32-aio.c 5.9 kB

Latest revisions

# Date Author Comment
5d8caa54 08/06/2013 04:27 pm Fam Zheng

vmdk: Make VMDK3Header and VmdkGrainMarker QEMU_PACKED

It's best to make it consistent that all on disk structures are
QEMU_PACKED.

Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

e98768d4 08/06/2013 04:27 pm Fam Zheng

vmdk: use unsigned values for on disk header fields

The size and offset fields are all non-negative values, use uint64_t for
them to avoid getting negative in memory value by int overflow.

Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

8aa1331c 08/06/2013 04:27 pm Fam Zheng

vmdk: check granularity field in opening

Granularity is used to calculate the cluster size and allocate r/w
buffer. Check the value from image before using it, so we don't abort()
for unbounded memory allocation.

Signed-off-by: Fam Zheng <>...

f8ce0403 08/06/2013 04:27 pm Fam Zheng

vmdk: check l2 table size when opening

header.num_gtes_per_gte determines size for L2 table. Check for too big
value before using it. Limit to 512M entries (2GB per one L2 table).

Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

2c43e43c 08/06/2013 04:27 pm Fam Zheng

vmdk: check l1 size before opening image

L1 table size is calculated from capacity, granularity and l2 table
size. If capacity is too big or later two are too small, the L1 table
will be too big to allocate in memory. Limit it to a reasonable range.

Signed-off-by: Fam Zheng <>...

bf81507d 08/06/2013 04:27 pm Fam Zheng

vmdk: use heap allocation for whole_grain

We should never grow the stack beyond 1 MB, otherwise we'll fall off the
end. Thread stacks and coroutine stacks (1 MB) do not grow.
get_cluster_offset() allocates a big stack offset, it will fail for big
cluster images, change to heap allocated buffer....

ca8804ce 08/06/2013 04:27 pm Fam Zheng

vmdk: rename num_gtes_per_gte to num_gtes_per_gt

num_gtes_per_gte is a historical typo, rename it to a more sensible
name. It means "number of GrainTableEntries per GrainTable".

Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

e4f5c1bf 08/06/2013 11:41 am Liu Yuan

sheepdog: add missing .bdrv_has_zero_init

Commit 3ac21627 changed the behaviour of bdrv_has_zero_init() to default
to 0. In the review for Sheepdog it turned out that enabling it is safe,
so that commit updated one BlockDriver definition of sheepdog to use...

8e507243 08/02/2013 05:07 pm Fam Zheng

vmdk: fix comment for vmdk_co_write_zeroes

The comment was truncated. Add the missing parts, especially explain why
we need zero_dry_run.

Signed-off-by: Fam Zheng <>
Signed-off-by: Michael Tokarev <>

f5075224 08/02/2013 05:02 pm Richard W.M. Jones

block/iscsi.c: Fix printf format error.

The error on armv7hl was:

block/iscsi.c: In function ‘is_request_lun_aligned’:
block/iscsi.c:251:26: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int64_t’ [-Werror=format=]
iscsilun->block_size, sector_num, nb_sectors);...

View revisions

Also available in: Atom