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
8411d7aa
Commit
8411d7aa
authored
Apr 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7c2e8281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
wcfs/misc.go
wcfs/misc.go
+6
-5
No files found.
wcfs/misc.go
View file @
8411d7aa
...
@@ -552,7 +552,7 @@ func parseWatch(msg string) (oid zodb.Oid, at zodb.Tid, err error) {
...
@@ -552,7 +552,7 @@ func parseWatch(msg string) (oid zodb.Oid, at zodb.Tid, err error) {
case
strings
.
HasPrefix
(
argv
[
1
],
"@"
)
:
case
strings
.
HasPrefix
(
argv
[
1
],
"@"
)
:
at
,
err
=
zodb
.
ParseTid
(
argv
[
1
][
1
:
])
at
,
err
=
zodb
.
ParseTid
(
argv
[
1
][
1
:
])
default
:
default
:
err
=
fmt
.
Errorf
(
"x"
)
//
XXX
just anything
err
=
fmt
.
Errorf
(
"x"
)
// just anything
}
}
if
err
!=
nil
{
if
err
!=
nil
{
return
0
,
0
,
fmt
.
Errorf
(
"invalid at"
)
return
0
,
0
,
fmt
.
Errorf
(
"invalid at"
)
...
@@ -565,7 +565,7 @@ func parseWatch(msg string) (oid zodb.Oid, at zodb.Tid, err error) {
...
@@ -565,7 +565,7 @@ func parseWatch(msg string) (oid zodb.Oid, at zodb.Tid, err error) {
func
(
root
*
Root
)
StatFs
()
*
fuse
.
StatfsOut
{
func
(
root
*
Root
)
StatFs
()
*
fuse
.
StatfsOut
{
return
&
fuse
.
StatfsOut
{
return
&
fuse
.
StatfsOut
{
// filesystem sizes
XXX get root.zstor.Size() ?
// filesystem sizes
(don't try to estimate)
Blocks
:
0
,
Blocks
:
0
,
Bfree
:
0
,
Bfree
:
0
,
Bavail
:
0
,
Bavail
:
0
,
...
@@ -574,8 +574,9 @@ func (root *Root) StatFs() *fuse.StatfsOut {
...
@@ -574,8 +574,9 @@ func (root *Root) StatFs() *fuse.StatfsOut {
Files
:
0
,
Files
:
0
,
Ffree
:
0
,
Ffree
:
0
,
Bsize
:
2
*
1024
*
1024
,
// XXX ok? better get from root
// block size
Frsize
:
2
*
1024
*
1024
,
Bsize
:
2
*
1024
*
1024
,
// "optimal transfer block size" XXX better get from root?
Frsize
:
2
*
1024
*
1024
,
// "fragment size"
NameLen
:
255
,
// XXX ok? /proc uses the same
NameLen
:
255
,
// XXX ok? /proc uses the same
}
}
...
...
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