Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
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
Levin Zimmermann
go-fuse
Commits
70326fc5
Commit
70326fc5
authored
Mar 13, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: more doc
parent
32016f39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
nodefs/README.md
nodefs/README.md
+1
-1
nodefs/api.go
nodefs/api.go
+0
-4
nodefs/files.go
nodefs/files.go
+4
-5
No files found.
nodefs/README.md
View file @
70326fc5
...
@@ -86,5 +86,5 @@ or
...
@@ -86,5 +86,5 @@ or
*
Merge Fsync/FsyncDir?
*
Merge Fsync/FsyncDir?
*
Merge Release/ReleaseDir?
*
Merge Release/ReleaseDir?
(others?)
nodefs/api.go
View file @
70326fc5
...
@@ -139,8 +139,6 @@ type Operations interface {
...
@@ -139,8 +139,6 @@ type Operations interface {
// ERANGE and the correct size.
// ERANGE and the correct size.
ListXAttr
(
ctx
context
.
Context
,
dest
[]
byte
)
(
uint32
,
fuse
.
Status
)
ListXAttr
(
ctx
context
.
Context
,
dest
[]
byte
)
(
uint32
,
fuse
.
Status
)
// The methods below may be called on closed files, due to
// concurrency.
GetAttr
(
ctx
context
.
Context
,
f
FileHandle
,
out
*
fuse
.
AttrOut
)
fuse
.
Status
GetAttr
(
ctx
context
.
Context
,
f
FileHandle
,
out
*
fuse
.
AttrOut
)
fuse
.
Status
// Lookup should find a direct child of the node by child
// Lookup should find a direct child of the node by child
...
@@ -284,8 +282,6 @@ type FileHandle interface {
...
@@ -284,8 +282,6 @@ type FileHandle interface {
// errors should happen in Flush instead.
// errors should happen in Flush instead.
Release
()
fuse
.
Status
Release
()
fuse
.
Status
// The methods below may be called on closed files, due to
// concurrency.
GetAttr
(
ctx
context
.
Context
,
out
*
fuse
.
AttrOut
)
fuse
.
Status
GetAttr
(
ctx
context
.
Context
,
out
*
fuse
.
AttrOut
)
fuse
.
Status
Truncate
(
ctx
context
.
Context
,
size
uint64
)
fuse
.
Status
Truncate
(
ctx
context
.
Context
,
size
uint64
)
fuse
.
Status
Chown
(
ctx
context
.
Context
,
uid
uint32
,
gid
uint32
)
fuse
.
Status
Chown
(
ctx
context
.
Context
,
uid
uint32
,
gid
uint32
)
fuse
.
Status
...
...
nodefs/files.go
View file @
70326fc5
...
@@ -22,11 +22,10 @@ func newLoopbackFile(fd int) *loopbackFile {
...
@@ -22,11 +22,10 @@ func newLoopbackFile(fd int) *loopbackFile {
type
loopbackFile
struct
{
type
loopbackFile
struct
{
fd
int
fd
int
// os.File is not threadsafe. Although fd themselves are
// Although fd themselves are constant during the lifetime of
// constant during the lifetime of an open file, the OS may
// an open file, the OS may reuse the fd number after it is
// reuse the fd number after it is closed. When open races
// closed. When open races with another close, they may lead
// with another close, they may lead to confusion as which
// to confusion as which file gets written in the end.
// file gets written in the end.
mu
sync
.
Mutex
mu
sync
.
Mutex
}
}
...
...
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