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
d0c4ba8c
Commit
d0c4ba8c
authored
Oct 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5c41d82a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcfs/wcfs.go
wcfs/wcfs.go
+3
-3
No files found.
wcfs/wcfs.go
View file @
d0c4ba8c
...
...
@@ -2032,7 +2032,7 @@ func (bfdir *BigFileDir) lookup(out *fuse.Attr, name string, fctx *fuse.Context)
return
nil
,
eINVALf
(
"not oid"
)
}
bfdir
.
head
.
zheadMu
.
RLock
()
// TODO +fctx -> cancel
bfdir
.
head
.
zheadMu
.
RLock
()
// TODO +fctx -> cancel
defer
bfdir
.
head
.
zheadMu
.
RUnlock
()
defer
func
()
{
...
...
@@ -2167,7 +2167,7 @@ func (head *Head) bigfopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err e
zconn
:=
head
.
zconn
defer
xerr
.
Contextf
(
&
err
,
"bigfopen %s @%s"
,
oid
,
zconn
.
At
())
//
XXX
better ctx = transaction.PutIntoContext(ctx, txn)
//
TODO
better ctx = transaction.PutIntoContext(ctx, txn)
ctx
,
cancel
:=
xcontext
.
Merge
(
ctx
,
zconn
.
TxnCtx
)
defer
cancel
()
...
...
@@ -2277,7 +2277,7 @@ func (f *BigFile) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Context) fus
func
(
f
*
BigFile
)
getattr
(
out
*
fuse
.
Attr
)
{
out
.
Mode
=
fuse
.
S_IFREG
|
0444
out
.
Size
=
uint64
(
f
.
size
)
out
.
Blksize
=
uint32
(
f
.
blksize
)
//
XXX
64 -> 32
out
.
Blksize
=
uint32
(
f
.
blksize
)
//
NOTE truncating
64 -> 32
// .Blocks
mtime
:=
f
.
rev
.
Time
()
.
Time
...
...
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