* [Qemu-devel] [PATCH] raw-posix: raw_pwrite comment fixup
@ 2010-11-26 13:32 Christoph Hellwig
2010-11-26 18:03 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2010-11-26 13:32 UTC (permalink / raw)
To: qemu-devel
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: qemu/block/raw-posix.c
===================================================================
--- qemu.orig/block/raw-posix.c 2010-11-26 14:27:44.156253530 +0100
+++ qemu/block/raw-posix.c 2010-11-26 14:27:59.812272461 +0100
@@ -463,7 +463,7 @@ static int raw_pwrite(BlockDriverState *
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] raw-posix: raw_pwrite comment fixup
2010-11-26 13:32 [Qemu-devel] [PATCH] raw-posix: raw_pwrite comment fixup Christoph Hellwig
@ 2010-11-26 18:03 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2010-11-26 18:03 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: qemu-devel
Am 26.11.2010 14:32, schrieb Christoph Hellwig:
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> Index: qemu/block/raw-posix.c
> ===================================================================
> --- qemu.orig/block/raw-posix.c 2010-11-26 14:27:44.156253530 +0100
> +++ qemu/block/raw-posix.c 2010-11-26 14:27:59.812272461 +0100
> @@ -463,7 +463,7 @@ static int raw_pwrite(BlockDriverState *
> 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);
>
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-26 18:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 13:32 [Qemu-devel] [PATCH] raw-posix: raw_pwrite comment fixup Christoph Hellwig
2010-11-26 18:03 ` Kevin Wolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.