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
8fd39879
Commit
8fd39879
authored
Oct 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c1e6c5f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
wcfs/wcfs.go
wcfs/wcfs.go
+5
-7
No files found.
wcfs/wcfs.go
View file @
8fd39879
...
...
@@ -2350,8 +2350,6 @@ func main() {
func
_main
()
(
err
error
)
{
debug
:=
flag
.
Bool
(
"d"
,
false
,
"debug"
)
autoexit
:=
flag
.
Bool
(
"autoexit"
,
false
,
"automatically stop service when there is no client activity"
)
// XXX option to prevent starting if wcfs was already started/mounted on mntpt ?
// XXX do the check unconditionally?
flag
.
Parse
()
if
len
(
flag
.
Args
())
!=
2
{
...
...
@@ -2365,7 +2363,7 @@ func _main() (err error) {
err
=
xerr
.
First
(
err
,
c
.
Close
())
}
// debug -> precise t, no dates (
XXX
-> always precise t?)
// debug -> precise t, no dates (
TODO(?)
-> always precise t?)
if
*
debug
{
stdlog
.
SetFlags
(
stdlog
.
Lmicroseconds
)
}
...
...
@@ -2379,7 +2377,7 @@ func _main() (err error) {
log
.
Info
(
gover
)
// open zodb storage/watch/db/connection
ctx
:=
context
.
Background
()
// XXX
+ timeout?
ctx
:=
context
.
Background
()
// TODO(?)
+ timeout?
zstor
,
err
:=
zodb
.
Open
(
ctx
,
zurl
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
,
})
...
...
@@ -2450,7 +2448,7 @@ func _main() (err error) {
// TODO -> teach go-fuse to handle Init.MaxPages (Linux 4.20+).
MaxWrite
:
2
*
1024
*
1024
,
//
XXX
tune MaxReadAhead? MaxBackground?
//
TODO(?)
tune MaxReadAhead? MaxBackground?
// OS cache that we populate with bigfile data is precious;
// we explicitly propagate ZODB invalidations into file invalidations.
...
...
@@ -2464,8 +2462,8 @@ func _main() (err error) {
if
err
!=
nil
{
return
err
}
groot
=
root
// FIXME temp workaround (see ^^^)
gfsconn
=
fsconn
// FIXME ----//----
groot
=
root
// FIXME temp workaround (see ^^^)
gfsconn
=
fsconn
// FIXME ----//----
gmntpt
=
mntpt
// we require proper pagecache control (added to Linux 2.6.36 in 2010)
...
...
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