blkdev: increment data address and lba each time through read/write loop
authorBrett Gordon <beretta42@gmail.com>
Wed, 23 Sep 2015 21:20:14 +0000 (17:20 -0400)
committerBrett Gordon <beretta42@gmail.com>
Wed, 23 Sep 2015 21:20:14 +0000 (17:20 -0400)
Kernel/dev/blkdev.c

index d6a1f31..8791ecf 100644 (file)
@@ -126,6 +126,8 @@ static int blkdev_transfer(uint8_t minor, uint8_t rawflag)
             goto xferfail;
         blk_op.nblock -= n;
         count += n;
+       blk_op.addr += n * BLKSIZE;
+       blk_op.lba += n;
     }
 
     return count; /* 10/10, would transfer sectors again */