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
4fc8c487
Commit
4fc8c487
authored
Aug 11, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enums are go-ish.
parent
c818f9ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
53 deletions
+57
-53
fuse/fuse.go
fuse/fuse.go
+57
-53
No files found.
fuse/fuse.go
View file @
4fc8c487
...
@@ -123,57 +123,61 @@ FUSE_COMPAT_STATFS_SIZE = 48
...
@@ -123,57 +123,61 @@ FUSE_COMPAT_STATFS_SIZE = 48
CUSE_INIT_INFO_MAX
=
4096
CUSE_INIT_INFO_MAX
=
4096
enum
fuse_opcode
{
)
FUSE_LOOKUP
=
1
,
FUSE_FORGET
=
2
,
/* no reply */
type
fuse_opcode
int
FUSE_GETATTR
=
3
,
FUSE_SETATTR
=
4
,
const
(
FUSE_READLINK
=
5
,
FUSE_LOOKUP
=
1
FUSE_SYMLINK
=
6
,
FUSE_FORGET
=
2
/* no reply */
FUSE_MKNOD
=
8
,
FUSE_GETATTR
=
3
FUSE_MKDIR
=
9
,
FUSE_SETATTR
=
4
FUSE_UNLINK
=
10
,
FUSE_READLINK
=
5
FUSE_RMDIR
=
11
,
FUSE_SYMLINK
=
6
FUSE_RENAME
=
12
,
FUSE_MKNOD
=
8
FUSE_LINK
=
13
,
FUSE_MKDIR
=
9
FUSE_OPEN
=
14
,
FUSE_UNLINK
=
10
FUSE_READ
=
15
,
FUSE_RMDIR
=
11
FUSE_WRITE
=
16
,
FUSE_RENAME
=
12
FUSE_STATFS
=
17
,
FUSE_LINK
=
13
FUSE_RELEASE
=
18
,
FUSE_OPEN
=
14
FUSE_FSYNC
=
20
,
FUSE_READ
=
15
FUSE_SETXATTR
=
21
,
FUSE_WRITE
=
16
FUSE_GETXATTR
=
22
,
FUSE_STATFS
=
17
FUSE_LISTXATTR
=
23
,
FUSE_RELEASE
=
18
FUSE_REMOVEXATTR
=
24
,
FUSE_FSYNC
=
20
FUSE_FLUSH
=
25
,
FUSE_SETXATTR
=
21
FUSE_INIT
=
26
,
FUSE_GETXATTR
=
22
FUSE_OPENDIR
=
27
,
FUSE_LISTXATTR
=
23
FUSE_READDIR
=
28
,
FUSE_REMOVEXATTR
=
24
FUSE_RELEASEDIR
=
29
,
FUSE_FLUSH
=
25
FUSE_FSYNCDIR
=
30
,
FUSE_INIT
=
26
FUSE_GETLK
=
31
,
FUSE_OPENDIR
=
27
FUSE_SETLK
=
32
,
FUSE_READDIR
=
28
FUSE_SETLKW
=
33
,
FUSE_RELEASEDIR
=
29
FUSE_ACCESS
=
34
,
FUSE_FSYNCDIR
=
30
FUSE_CREATE
=
35
,
FUSE_GETLK
=
31
FUSE_INTERRUPT
=
36
,
FUSE_SETLK
=
32
FUSE_BMAP
=
37
,
FUSE_SETLKW
=
33
FUSE_DESTROY
=
38
,
FUSE_ACCESS
=
34
FUSE_IOCTL
=
39
,
FUSE_CREATE
=
35
FUSE_POLL
=
40
,
FUSE_INTERRUPT
=
36
FUSE_BMAP
=
37
FUSE_DESTROY
=
38
FUSE_IOCTL
=
39
FUSE_POLL
=
40
/* CUSE specific operations */
/* CUSE specific operations */
CUSE_INIT
=
4096
,
CUSE_INIT
=
4096
}
)
enum
fuse_notify_code
{
type
fuse_notyfy_code
int
FUSE_NOTIFY_POLL
=
1
,
FUSE_NOTIFY_INVAL_INODE
=
2
,
FUSE_NOTIFY_INVAL_ENTRY
=
3
,
FUSE_NOTIFY_CODE_MAX
,
}
const
(
FUSE_NOTIFY_POLL
=
1
FUSE_NOTIFY_INVAL_INODE
=
2
FUSE_NOTIFY_INVAL_ENTRY
=
3
FUSE_NOTIFY_CODE_MAX
=
4
)
)
/* Make sure all structures are padded to 64bit boundary, so 32bit
/* Make sure all structures are padded to 64bit boundary, so 32bit
...
@@ -450,7 +454,7 @@ type fuse_ioctl_in struct {
...
@@ -450,7 +454,7 @@ type fuse_ioctl_in struct {
}
}
type
fuse_ioctl_out
struct
{
type
fuse_ioctl_out
struct
{
result
__s
32
result
int
32
flags
uint32
flags
uint32
in_iovs
uint32
in_iovs
uint32
out_iovs
uint32
out_iovs
uint32
...
@@ -473,7 +477,7 @@ type fuse_notify_poll_wakeup_out struct {
...
@@ -473,7 +477,7 @@ type fuse_notify_poll_wakeup_out struct {
}
}
type
fuse_in_header
struct
{
type
fuse_in_header
struct
{
len
uint32
length
uint32
opcode
uint32
opcode
uint32
unique
uint64
unique
uint64
nodeid
uint64
nodeid
uint64
...
@@ -484,8 +488,8 @@ type fuse_in_header struct {
...
@@ -484,8 +488,8 @@ type fuse_in_header struct {
}
}
type
fuse_out_header
struct
{
type
fuse_out_header
struct
{
len
uint32
length
uint32
error
__s
32
error
int
32
unique
uint64
unique
uint64
}
}
...
@@ -499,8 +503,8 @@ type fuse_dirent struct {
...
@@ -499,8 +503,8 @@ type fuse_dirent struct {
type
fuse_notify_inval_inode_out
struct
{
type
fuse_notify_inval_inode_out
struct
{
ino
uint64
ino
uint64
off
__s
64
off
int
64
len
__s
64
length
int
64
}
}
type
fuse_notify_inval_entry_out
struct
{
type
fuse_notify_inval_entry_out
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