diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-12-29 02:44:37 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-12-29 02:44:37 +0000 |
| commit | 87241caa43a2cf0a8d5fa8315753a80d47e5c39f (patch) | |
| tree | b2aa4239586797edd5ac58576497d919af438876 /sys | |
| parent | 8596ee6d82bbf0c5cb3ef5e974a4febca273f88b (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_readwrite.c | 3 | ||||
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_readwrite.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index de13ed08d9ca..b96b8ad46b6d 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -114,7 +114,8 @@ READ(ap) error = bread(vp, lbn, size, NOCRED, &bp); else if (doclusterread) error = cluster_read(vp, - ip->i_size, lbn, size, NOCRED, &bp); + ip->i_size, lbn, size, NOCRED, + uio->uio_resid, (ap->a_ioflag >> 16), &bp); else if (lbn - 1 == vp->v_lastr) { int nextsize = BLKSIZE(fs, ip, nextlbn); error = breadn(vp, lbn, diff --git a/sys/gnu/fs/ext2fs/ext2_readwrite.c b/sys/gnu/fs/ext2fs/ext2_readwrite.c index de13ed08d9ca..b96b8ad46b6d 100644 --- a/sys/gnu/fs/ext2fs/ext2_readwrite.c +++ b/sys/gnu/fs/ext2fs/ext2_readwrite.c @@ -114,7 +114,8 @@ READ(ap) error = bread(vp, lbn, size, NOCRED, &bp); else if (doclusterread) error = cluster_read(vp, - ip->i_size, lbn, size, NOCRED, &bp); + ip->i_size, lbn, size, NOCRED, + uio->uio_resid, (ap->a_ioflag >> 16), &bp); else if (lbn - 1 == vp->v_lastr) { int nextsize = BLKSIZE(fs, ip, nextlbn); error = breadn(vp, lbn, |
