[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/11] block: Fix comment for bdrv_co_get_block_statu
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 11/11] block: Fix comment for bdrv_co_get_block_status |
Date: |
Tue, 11 Nov 2014 17:46:33 +0300 |
From: Fam Zheng <address@hidden>
It returns more information than binary, fix the comment.
Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
block.c | 6 +++---
include/block/block.h | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/block.c b/block.c
index 88f6d9b..5f5b244 100644
--- a/block.c
+++ b/block.c
@@ -3877,9 +3877,9 @@ typedef struct BdrvCoGetBlockStatusData {
} BdrvCoGetBlockStatusData;
/*
- * Returns true iff the specified sector is present in the disk image. Drivers
- * not implementing the functionality are assumed to not support backing files,
- * hence all their sectors are reported as allocated.
+ * Returns the allocation status of the specified sectors.
+ * Drivers not implementing the functionality are assumed to not support
+ * backing files, hence all their sectors are reported as allocated.
*
* If 'sector_num' is beyond the end of the disk image the return value is 0
* and 'pnum' is set to 0.
diff --git a/include/block/block.h b/include/block/block.h
index 341054d..603d4b4 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -83,7 +83,9 @@ typedef enum {
#define BDRV_SECTOR_SIZE (1ULL << BDRV_SECTOR_BITS)
#define BDRV_SECTOR_MASK ~(BDRV_SECTOR_SIZE - 1)
-/* BDRV_BLOCK_DATA: data is read from bs->file or another file
+/*
+ * Allocation status flags
+ * BDRV_BLOCK_DATA: data is read from bs->file or another file
* BDRV_BLOCK_ZERO: sectors read as zero
* BDRV_BLOCK_OFFSET_VALID: sector stored in bs->file as raw data
* BDRV_BLOCK_ALLOCATED: the content of the block is determined by this
--
1.7.10.4
- [Qemu-devel] [PULL 00/11 for-2.2] Trivial patches for 2014-11-11, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 07/11] coroutine-sigaltstack: Change jmp_buf to sigjmp_buf, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 01/11] icc_bus: fix typo ICC_BRIGDE -> ICC_BRIDGE, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 02/11] qemu-doc.texi: fix typos in x509 examples, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 11/11] block: Fix comment for bdrv_co_get_block_status,
Michael Tokarev <=
- [Qemu-devel] [PULL 09/11] target-i386: cpu: keeping function parameters alignment on new line, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 10/11] sysbus: Correct SYSTEM_BUS(obj) defines, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 03/11] slirp/smbd: modify/set several parameters in generated smbd.conf, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 05/11] gdbstub: Add a missing case of signal number translation in gdbstub, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 04/11] numa: make 'info numa' take into account hotplugged memory, Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 08/11] xen-hvm: Remove redundant variable 'xstate', Michael Tokarev, 2014/11/11
- [Qemu-devel] [PULL 06/11] pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead of 'xlnx, xps-ethernetlite-2.00.b', Michael Tokarev, 2014/11/11
- Re: [Qemu-devel] [PULL 00/11 for-2.2] Trivial patches for 2014-11-11, Peter Maydell, 2014/11/11