Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
b77b21f6
Commit
b77b21f6
authored
Oct 09, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
27e25ab5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wcfs/wcfs.go
wcfs/wcfs.go
+4
-1
No files found.
wcfs/wcfs.go
View file @
b77b21f6
...
...
@@ -522,7 +522,8 @@ func (bfdata *BigFileData) Read(_ nodefs.File, dest []byte, off int64, fctx *fus
blkoff
:=
blkoff
blk
:=
blkoff
/
zbf
.
blksize
wg
.
Go
(
func
()
error
{
return
bfdata
.
readBlk
(
ctx
,
blk
,
dest
[
blkoff
-
aoff
:
])
// XXX dest.size
δ
:=
blkoff
-
aoff
// blk position in dest
return
bfdata
.
readBlk
(
ctx
,
blk
,
dest
[
δ
:
δ
+
zbf
.
blksize
])
})
}
...
...
@@ -536,6 +537,8 @@ func (bfdata *BigFileData) Read(_ nodefs.File, dest []byte, off int64, fctx *fus
}
// readBlk serves Read to read 1 ZBlk #blk into destination buffer.
//
// len(dest) == blksize.
func
(
bfdata
*
BigFileData
)
readBlk
(
ctx
context
.
Context
,
blk
int64
,
dest
[]
byte
)
error
{
// XXX errctx?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment