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
a72ea3ac
Commit
a72ea3ac
authored
Apr 28, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put MountOptions in the public types.go header.
parent
95ecd2db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
fuse/pathfilesystem.go
fuse/pathfilesystem.go
+2
-9
fuse/types.go
fuse/types.go
+12
-3
No files found.
fuse/pathfilesystem.go
View file @
a72ea3ac
...
...
@@ -141,14 +141,7 @@ func (me *inode) setParent(newParent *inode) {
}
}
type
MountOptions
struct
{
EntryTimeout
float64
AttrTimeout
float64
NegativeTimeout
float64
}
func
MakeMountOptions
()
*
MountOptions
{
func
NewMountOptions
()
*
MountOptions
{
return
&
MountOptions
{
NegativeTimeout
:
0.0
,
AttrTimeout
:
1.0
,
...
...
@@ -429,7 +422,7 @@ func (me *FileSystemConnector) Mount(mountPoint string, fs FileSystem, opts *Mou
node
.
mount
=
newMount
(
fs
)
if
opts
==
nil
{
opts
=
Make
MountOptions
()
opts
=
New
MountOptions
()
}
node
.
mount
.
options
=
opts
return
OK
...
...
fuse/types.go
View file @
a72ea3ac
...
...
@@ -23,7 +23,7 @@ const (
FATTR_ATIME_NOW
=
(
1
<<
7
)
FATTR_MTIME_NOW
=
(
1
<<
8
)
FATTR_LOCKOWNER
=
(
1
<<
9
)
// OpenIn.Flags
FOPEN_DIRECT_IO
=
(
1
<<
0
)
...
...
@@ -41,7 +41,7 @@ const (
CAP_SPLICE_WRITE
=
(
1
<<
7
)
CAP_SPLICE_MOVE
=
(
1
<<
8
)
CAP_SPLICE_READ
=
(
1
<<
9
)
FUSE_UNKNOWN_INO
=
0xffffffff
CUSE_UNRESTRICTED_IOCTL
=
(
1
<<
0
)
...
...
@@ -598,7 +598,16 @@ type FileSystem interface {
// unimplemented: poll, ioctl, bmap.
}
// Include this struct in your implementation to inherit default nop
// MountOptions contains time out options for a FileSystem. The
// default copied from libfuse and set in NewMountOptions() is
// (1s,1s,0s).
type
MountOptions
struct
{
EntryTimeout
float64
AttrTimeout
float64
NegativeTimeout
float64
}
// Include these structs in your implementation to inherit default nop
// implementations.
type
DefaultFileSystem
struct
{}
...
...
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