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
6559cefe
Commit
6559cefe
authored
Mar 28, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1a587945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
wcfs/wcfs.go
wcfs/wcfs.go
+5
-6
No files found.
wcfs/wcfs.go
View file @
6559cefe
...
...
@@ -472,10 +472,8 @@ type Head struct {
// XXX move zconn's current transaction to Head here?
// XXX move watchTab here?
// head/watch opens
// XXX protected by ... head.zconnMu ?
// XXX -> Head ?
watchTab
map
[
*
Watcher
]
struct
{}
}
...
...
@@ -489,11 +487,10 @@ type Watch struct {
// /head/watch handle - served by Watcher.
type
Watcher
struct
{
sk
*
FileSock
sk
*
FileSock
// IO channel to client
id
int32
// ID of this /head/watch handle (for debug log)
head
*
Head
// established file watchers.
// XXX in-progress - where?
// XXX locking?
...
...
@@ -1251,16 +1248,18 @@ retry:
// Open serves /head/watch opens.
func
(
watch
*
Watch
)
Open
(
flags
uint32
,
fctx
*
fuse
.
Context
)
(
nodefs
.
File
,
fuse
.
Status
)
{
// XXX check flags?
head
:=
watch
.
head
w
:=
&
Watcher
{
sk
:
NewFileSock
(),
id
:
atomic
.
AddInt32
(
&
watch
.
idNext
,
+
1
),
head
:
watch
.
head
,
head
:
head
,
fileTab
:
make
(
map
[
*
FileWatch
]
struct
{}),
}
// XXX locking
// XXX del watchTab[w] on w.sk.File.Release
watch
.
head
.
watchTab
[
w
]
=
struct
{}{}
head
.
watchTab
[
w
]
=
struct
{}{}
go
w
.
serve
()
return
w
.
sk
.
File
(),
fuse
.
OK
...
...
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