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
05abe73d
Commit
05abe73d
authored
Apr 30, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop exporting operation enum.
parent
e967133e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
178 additions
and
177 deletions
+178
-177
fuse/fuse.go
fuse/fuse.go
+1
-1
fuse/opcode.go
fuse/opcode.go
+175
-130
fuse/types.go
fuse/types.go
+2
-46
No files found.
fuse/fuse.go
View file @
05abe73d
...
...
@@ -288,7 +288,7 @@ func (me *MountState) handle(req *request) {
// If we try to write OK, nil, we will get
// error: writer: Writev [[16 0 0 0 0 0 0 0 17 0 0 0 0 0 0 0]]
// failed, err: writev: no such file or directory
if
req
.
inHeader
.
opcode
!=
FUSE
_FORGET
{
if
req
.
inHeader
.
opcode
!=
_OP
_FORGET
{
serialize
(
req
,
handler
,
me
.
Debug
)
me
.
Write
(
req
)
}
...
...
fuse/opcode.go
View file @
05abe73d
This diff is collapsed.
Click to expand it.
fuse/types.go
View file @
05abe73d
...
...
@@ -74,6 +74,8 @@ const (
// TODO - get this from a canonical place.
PAGESIZE
=
4096
CUSE_INIT
=
4096
O_ANYWRITE
=
uint32
(
os
.
O_WRONLY
|
os
.
O_RDWR
|
os
.
O_APPEND
|
os
.
O_CREATE
|
os
.
O_TRUNC
)
)
...
...
@@ -98,52 +100,6 @@ const (
EXDEV
=
Status
(
syscall
.
EXDEV
)
)
type
opcode
int
const
(
FUSE_LOOKUP
=
1
FUSE_FORGET
=
2
FUSE_GETATTR
=
3
FUSE_SETATTR
=
4
FUSE_READLINK
=
5
FUSE_SYMLINK
=
6
FUSE_MKNOD
=
8
FUSE_MKDIR
=
9
FUSE_UNLINK
=
10
FUSE_RMDIR
=
11
FUSE_RENAME
=
12
FUSE_LINK
=
13
FUSE_OPEN
=
14
FUSE_READ
=
15
FUSE_WRITE
=
16
FUSE_STATFS
=
17
FUSE_RELEASE
=
18
FUSE_FSYNC
=
20
FUSE_SETXATTR
=
21
FUSE_GETXATTR
=
22
FUSE_LISTXATTR
=
23
FUSE_REMOVEXATTR
=
24
FUSE_FLUSH
=
25
FUSE_INIT
=
26
FUSE_OPENDIR
=
27
FUSE_READDIR
=
28
FUSE_RELEASEDIR
=
29
FUSE_FSYNCDIR
=
30
FUSE_GETLK
=
31
FUSE_SETLK
=
32
FUSE_SETLKW
=
33
FUSE_ACCESS
=
34
FUSE_CREATE
=
35
FUSE_INTERRUPT
=
36
FUSE_BMAP
=
37
FUSE_DESTROY
=
38
FUSE_IOCTL
=
39
FUSE_POLL
=
40
OPCODE_COUNT
=
41
CUSE_INIT
=
4096
)
type
NotifyCode
int
...
...
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