From cd2bb6ce1de4f0769f4c2e570d8eeb49bfa320cc Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 4 May 2007 19:15:39 +0000 Subject: =?UTF-8?q?propagate=20offset=20in=20reads=20and=20writes=20(Micha?= =?UTF-8?q?el=20Teichgr=C3=A4ber)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cmd/9pfuse/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c index 789c963b..37064d4e 100644 --- a/src/cmd/9pfuse/main.c +++ b/src/cmd/9pfuse/main.c @@ -777,7 +777,7 @@ fuseread(FuseMsg *m) if(n > fusemaxwrite) n = fusemaxwrite; buf = emalloc(n); - n = fsread(fid, buf, n); + n = fspread(fid, buf, n, in->offset); if(n < 0){ free(buf); replyfuseerrstr(m); @@ -904,7 +904,7 @@ fusewrite(FuseMsg *m) replyfuseerrno(m, EINVAL); return; } - n = fswrite(fid, a, in->size); + n = fspwrite(fid, a, in->size, in->offset); if(n < 0){ replyfuseerrstr(m); return; -- cgit v1.2.3