aboutsummaryrefslogtreecommitdiff
path: root/block/raw-posix.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-11-26 14:32:34 +0100
committerKevin Wolf <kwolf@redhat.com>2010-11-26 19:02:52 +0100
commit11a3cb8159278f7452b5bec8b9e17292a3ef53c3 (patch)
tree20cae08d692a49b351180a1edc21dc59c5b390ae /block/raw-posix.c
parent2dd791b6302c73345f92dc9b107635787fcff938 (diff)
raw-posix: raw_pwrite comment fixup
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw-posix.c')
-rw-r--r--block/raw-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c
index d0960b85c4..9286fb8b0d 100644
--- 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);