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
a9f90ffa
Commit
a9f90ffa
authored
Dec 28, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1c67ee17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
wcfs/misc.go
wcfs/misc.go
+1
-1
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-0
No files found.
wcfs/misc.go
View file @
a9f90ffa
...
@@ -281,7 +281,7 @@ func (f *skFile) Read(dest []byte, /*ignored*/off int64) (fuse.ReadResult, fuse.
...
@@ -281,7 +281,7 @@ func (f *skFile) Read(dest []byte, /*ignored*/off int64) (fuse.ReadResult, fuse.
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err2LogStatus
(
err
)
return
nil
,
err2LogStatus
(
err
)
}
}
return
fuse
.
ReadResultData
(
dest
),
fuse
.
OK
return
fuse
.
ReadResultData
(
dest
[
:
n
]
),
fuse
.
OK
}
}
...
...
wcfs/wcfs.go
View file @
a9f90ffa
...
@@ -551,7 +551,7 @@ func (root *Root) zwatcher(ctx context.Context) (err error) {
...
@@ -551,7 +551,7 @@ func (root *Root) zwatcher(ctx context.Context) (err error) {
return
ctx
.
Err
()
return
ctx
.
Err
()
case
zevent
,
ok
=
<-
zwatchq
:
case
zevent
,
ok
=
<-
zwatchq
:
log
.
Info
(
"event"
)
log
.
Info
(
"event"
,
zevent
,
ok
)
if
!
ok
{
if
!
ok
{
return
nil
// closed XXX ok?
return
nil
// closed XXX ok?
}
}
...
...
wcfs/wcfs_test.py
View file @
a9f90ffa
...
@@ -185,6 +185,9 @@ def test_wcfs():
...
@@ -185,6 +185,9 @@ def test_wcfs():
def
wcsync
():
def
wcsync
():
while
len
(
Z
.
wctidv
)
<
len
(
Z
.
tidv
):
while
len
(
Z
.
wctidv
)
<
len
(
Z
.
tidv
):
l
=
wc_zhead
.
readline
()
l
=
wc_zhead
.
readline
()
print
'
\
n
\
n
\
n
'
print
'> zhead read: %r'
%
l
print
l
=
l
.
rstrip
(
'
\
n
'
)
l
=
l
.
rstrip
(
'
\
n
'
)
wctid
=
fromhex
(
l
)
wctid
=
fromhex
(
l
)
i
=
len
(
Z
.
wctidv
)
i
=
len
(
Z
.
wctidv
)
...
...
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