aboutsummaryrefslogtreecommitdiff
path: root/cluefs_frontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-04 14:24:43 +0200
committerJakob Unterwurzacher2015-10-04 14:24:43 +0200
commitc859f0b2dc8825763c3b63163a014435a8cdb3cf (patch)
tree3dc6f686e00322bfca25a70cb256524d27df81f4 /cluefs_frontend
parent775676ecb82f415874f3c6b83da1436b629166f4 (diff)
intraBlock: Rename Offset to Skip
"Offset" is unclear whether it is an offset from the start of file or start of block. "Skip" seems much better.
Diffstat (limited to 'cluefs_frontend')
-rw-r--r--cluefs_frontend/fe_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cluefs_frontend/fe_file.go b/cluefs_frontend/fe_file.go
index 4c4e38a..58ab0dc 100644
--- a/cluefs_frontend/fe_file.go
+++ b/cluefs_frontend/fe_file.go
@@ -116,8 +116,8 @@ func (f *File) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.Wri
return err
}
copy(blockData, readResp.Data)
- copy(blockData[ib.Offset:ib.Offset+ib.Length], req.Data)
- blockLen := max(len(readResp.Data), int(ib.Offset+ib.Length))
+ copy(blockData[ib.Skip:ib.Skip+ib.Length], req.Data)
+ blockLen := max(len(readResp.Data), int(ib.Skip+ib.Length))
blockData = blockData[0:blockLen]
} else {
blockData = req.Data[0:f.crfs.PlainBS()]