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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
374d89ad
Commit
374d89ad
authored
Oct 08, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f447d0d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
wcfs/__init__.py
wcfs/__init__.py
+1
-1
wcfs/wcfs.go
wcfs/wcfs.go
+3
-2
No files found.
wcfs/__init__.py
View file @
374d89ad
...
...
@@ -120,7 +120,7 @@ def join(zurl, autostart=_default_autostart()):
raise
RuntimeError
(
"wcfs: join %s: server not started"
%
zurl
)
# start wcfs with telling it to automatically exit when there is no client activity.
return
_start
(
zurl
,
"-autoexit"
,
'-d'
)
return
_start
(
zurl
,
"-autoexit"
,
'-d'
,
'-alsologtostderr'
)
# _start starts wcfs server for ZODB @ zurl.
...
...
wcfs/wcfs.go
View file @
374d89ad
...
...
@@ -444,6 +444,7 @@ func (bfroot *BigFileRoot) Mkdir(name string, mode uint32, fctx *fuse.Context) (
bfdata
:=
&
BigFileData
{
Node
:
nodefs
.
NewDefaultNode
(),
bigfile
:
bf
,
loading
:
make
(
map
[
int64
]
*
blkLoadState
),
}
bfhead
.
data
=
bfdata
...
...
@@ -587,7 +588,7 @@ func (bfdata *BigFileData) readBlk(ctx context.Context, blk int64, dest []byte)
// XXX locking - invalidation must make sure this workers are finished.
// XXX if direct-io: don't touch pagecache
st
:=
gfsconn
.
FileNotifyStoreCache
(
bfdata
.
Inode
(),
blk
*
blksize
,
blkdata
)
st
:=
gfsconn
.
FileNotifyStoreCache
(
bfdata
.
Inode
(),
blk
*
zbf
.
blksize
,
blkdata
)
bfdata
.
loadMu
.
Lock
()
delete
(
bfdata
.
loading
,
blk
)
...
...
@@ -653,7 +654,7 @@ var gfsconn *nodefs.FileSystemConnector
func
main
()
{
stdlog
.
SetPrefix
(
"wcfs: "
)
log
.
CopyStandardLogTo
(
"WARNING"
)
// XXX -> "DEBUG" if -d ?
//
log.CopyStandardLogTo("WARNING") // XXX -> "DEBUG" if -d ?
defer
log
.
Flush
()
debug
:=
flag
.
Bool
(
"d"
,
false
,
"debug"
)
...
...
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