Skip to contentSkip to conversation

qcow2: fix typo in documentation for qcow2_get_cluster_offset()

PATCH Applied Devin Nakamura 2 participants 2 messages Aug 7, 2011 – Aug 8, 2011 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qcow2: fix typo in documentation for qcow2_get_cluster_offset()

Documentation states the num is measured in clusters, but its actually measured in sectors

---
 block/qcow2-cluster.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
block/qcow2-cluster.c +2 -2
index 81cf77d..154597e 100644
@@ -381,10 +381,10 @@ static int copy_sectors(BlockDriverState *bs, uint64_t start_sect,
  * For a given offset of the disk image, find the cluster offset in
  * qcow2 file. The offset is stored in *cluster_offset.
  *
- * on entry, *num is the number of contiguous clusters we'd like to
+ * on entry, *num is the number of contiguous sectors we'd like to
  * access following offset.
  *
- * on exit, *num is the number of contiguous clusters we can read.
+ * on exit, *num is the number of contiguous sectors we can read.
  *
  * Return 0, if the offset is found
  * Return -errno, otherwise.
Signature · 1 line
1.7.6.rc1
Applied
#1 lore raw

Am 08.08.2011 01:47, schrieb Devin Nakamura:

Quoted 4 lines

Documentation states the num is measured in clusters, but its actually measured in sectors

Thanks, applied to the block branch.

Kevin