OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dd791b
)
raw-posix: raw_pwrite comment fixup
author
Christoph Hellwig
<hch@lst.de>
Fri, 26 Nov 2010 13:32:34 +0000
(14:32 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 26 Nov 2010 18:02:52 +0000
(19:02 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c
patch
|
blob
|
history
diff --git
a/block/raw-posix.c
b/block/raw-posix.c
index
d0960b8
..
9286fb8
100644
(file)
--- a/
block/raw-posix.c
+++ b/
block/raw-posix.c
@@
-463,7
+463,7
@@
static int raw_pwrite(BlockDriverState *bs, int64_t offset,
count -= ret;
sum += ret;
}
- /* here, count <
512
because (count & ~sector_mask) == 0 */
+ /* here, count <
sector_size
because (count & ~sector_mask) == 0 */
if (count) {
ret = raw_pread_aligned(bs, offset, s->aligned_buf,
bs->buffer_alignment);