aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/fuse/fuse_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/fuse/fuse_file.go')
-rw-r--r--swarm/fuse/fuse_file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/fuse/fuse_file.go b/swarm/fuse/fuse_file.go
index 0cb59dfb3..32c85d02f 100644
--- a/swarm/fuse/fuse_file.go
+++ b/swarm/fuse/fuse_file.go
@@ -134,7 +134,7 @@ func (sf *SwarmFile) Write(ctx context.Context, req *fuse.WriteRequest, resp *fu
if err != nil {
return err
}
- resp.Size = int(sf.fileSize)
+ resp.Size = len(req.Data)
} else {
log.Warn("Invalid write request size(%v) : off(%v)", sf.fileSize, req.Offset)
return errInvalidOffset