Skip to contentSkip to conversation

raw-posix: raw_pwrite comment fixup

PATCH Applied Christoph Hellwig 2 participants 2 messages Nov 26, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raw-posix: raw_pwrite comment fixup

block/raw-posix.c +1 -1
Index: qemu/block/raw-posix.c
===================================================================
@@ -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);
Applied
#1 lore raw

Am 26.11.2010 14:32, schrieb Christoph Hellwig:

Quoted 8 lines

Index: qemu/block/raw-posix.c
===================================================================

block/raw-posix.c static int raw_pwrite(BlockDriverState * · line 469

Quoted 8 lines
block/raw-posix.c +1 -1
@@ -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