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
aa2f3e0f
Commit
aa2f3e0f
authored
Dec 26, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
da48cbaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
wcfs/wcfs.go
wcfs/wcfs.go
+12
-1
No files found.
wcfs/wcfs.go
View file @
aa2f3e0f
...
...
@@ -625,6 +625,11 @@ func (r *Root) zhandle1(zevent zodb.CommitEvent) {
}
// XXX resync .zhead to zevent.tid
// notify .wcfs/zhead
for
fh
:=
range
gdebug
.
zhead
.
fhTab
{
fh
.
Write
(
fmt
.
Sprintf
(
"%s
\n
"
,
zevent
.
tid
))
// XXX -> fh = filesock
}
}
// invalidateBlk invalidates 1 file block. XXX
...
...
@@ -1238,7 +1243,13 @@ func main() {
dotwcfs
:=
nodefs
.
NewDefaultNode
()
mkdir
(
root
,
".wcfs"
,
dotwcfs
)
mkfile
(
dotwcfs
,
"zurl"
,
NewStaticFile
([]
byte
(
zurl
)))
// XXX zhead
// .wcfs/zhead - special file. If a user opens it, it will start to get
// tids of through whichzhead.at was, starting from the time when
// .wcfs/zhead was opened. There can be multiple openers. Once opened,
// the file must be read, as wcfs blocks waiting for data to be read.
// XXX text review.
mkfile
(
dotwcfs
,
"zhead"
,
...
)
// TODO handle autoexit
_
=
autoexit
...
...
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