aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-05-04 19:15:39 +0000
committerrsc <devnull@localhost>2007-05-04 19:15:39 +0000
commitcd2bb6ce1de4f0769f4c2e570d8eeb49bfa320cc (patch)
tree47d4c84bc585ebd866243af16cb64d40a2285b55 /src/cmd/9pfuse
parent4b3989fd41c51d8a464136012da2d08cba388e80 (diff)
downloadplan9port-cd2bb6ce1de4f0769f4c2e570d8eeb49bfa320cc.tar.gz
plan9port-cd2bb6ce1de4f0769f4c2e570d8eeb49bfa320cc.tar.bz2
plan9port-cd2bb6ce1de4f0769f4c2e570d8eeb49bfa320cc.zip
propagate offset in reads and writes (Michael Teichgräber)
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r--src/cmd/9pfuse/main.c4
1 files 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;