Patchwork raw-posix: raw_pwrite comment fixup

login
register
mail settings
Submitter Christoph Hellwig
Date Nov. 26, 2010, 1:32 p.m.
Message ID <20101126133234.GB9040@lst.de>
Download mbox | patch
Permalink /patch/73175/
State New
Headers show

Comments

Christoph Hellwig - Nov. 26, 2010, 1:32 p.m.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Kevin Wolf - Nov. 26, 2010, 6:03 p.m.
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

Patch

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);