public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f6722b
)
blkdev: increment data address and lba each time through read/write loop
author
Brett Gordon
<beretta42@gmail.com>
Wed, 23 Sep 2015 21:20:14 +0000
(17:20 -0400)
committer
Brett Gordon
<beretta42@gmail.com>
Wed, 23 Sep 2015 21:20:14 +0000
(17:20 -0400)
Kernel/dev/blkdev.c
patch
|
blob
|
history
diff --git
a/Kernel/dev/blkdev.c
b/Kernel/dev/blkdev.c
index
d6a1f31
..
8791ecf
100644
(file)
--- a/
Kernel/dev/blkdev.c
+++ b/
Kernel/dev/blkdev.c
@@
-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 */