From a541cd929c3da567be5c745c0eb94ec56cb0da35 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sun, 8 Sep 2013 00:11:47 -0400 Subject: [PATCH] libafs: update uio resid in bypasscache when we do a no cache read, we should decrease the resid as we use up buffer... otherwise we have no idea in the caller how much data actually got transferred Change-Id: I50072fddcde1681b3760002d5065b1c2d9b97605 Reviewed-on: http://gerrit.openafs.org/10231 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- src/afs/afs_bypasscache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c index 698839840..2e36d0065 100644 --- a/src/afs/afs_bypasscache.c +++ b/src/afs/afs_bypasscache.c @@ -434,6 +434,7 @@ afs_NoCacheFetchProc(struct rx_call *acall, goto done; } size -= bytes; + auio->uio_resid -= bytes; iovno = 0; } pp = (bypass_page_t)auio->uio_iov[curpage].iov_base; -- 2.39.5