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
Kirill Smelkov
go-fuse
Commits
423bd24c
Commit
423bd24c
authored
Aug 11, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made type names more readable Header_in -> HeaderIn
parent
7b502e0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
57 deletions
+57
-57
fuse/fuse.go
fuse/fuse.go
+1
-1
fuse/types.go
fuse/types.go
+56
-56
No files found.
fuse/fuse.go
View file @
423bd24c
...
...
@@ -77,7 +77,7 @@ func (m *MountPoint) loop() {
fmt
.
Printf
(
"MountPoint.loop: Read failed, err: %v
\n
"
,
err
)
os
.
Exit
(
1
)
}
var
h
In
_h
eader
var
h
In
H
eader
err
=
binary
.
Read
(
r
,
binary
.
LittleEndian
,
&
h
)
if
err
!=
nil
{
fmt
.
Printf
(
"MountPoint.loop: binary.Read of fuse_in_header failed with err: %v
\n
"
,
err
)
...
...
fuse/types.go
View file @
423bd24c
...
...
@@ -12,7 +12,7 @@ const (
FUSE_ROOT_ID
=
1
/**
* Bitmasks for Setattr
_i
n.valid
* Bitmasks for Setattr
I
n.valid
*/
FATTR_MODE
=
(
1
<<
0
)
FATTR_UID
=
(
1
<<
1
)
...
...
@@ -76,7 +76,7 @@ const (
* WRITE flags
*
* FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed
* FUSE_WRITE_LOCKOWNER: lock
_o
wner field is valid
* FUSE_WRITE_LOCKOWNER: lock
O
wner field is valid
*/
FUSE_WRITE_CACHE
=
(
1
<<
0
)
FUSE_WRITE_LOCKOWNER
=
(
1
<<
1
)
...
...
@@ -170,7 +170,7 @@ const (
CUSE_INIT
=
4096
)
type
Not
yfy_c
ode
int
type
Not
ifyC
ode
int
const
(
FUSE_NOTIFY_POLL
=
1
...
...
@@ -214,7 +214,7 @@ type Kstatfs struct {
Spare
[
6
]
uint32
}
type
File
_l
ock
struct
{
type
File
L
ock
struct
{
Start
uint64
End
uint64
Typ
uint32
...
...
@@ -222,7 +222,7 @@ type File_lock struct {
}
type
Entry
_o
ut
struct
{
type
Entry
O
ut
struct
{
Nodeid
uint64
/* Inode ID */
Generation
uint64
/* Inode generation: nodeid:gen must
be unique for the fs's lifetime */
...
...
@@ -233,18 +233,18 @@ type Entry_out struct {
Attr
Attr
}
type
Forget
_i
n
struct
{
type
Forget
I
n
struct
{
Nlookup
uint64
}
type
Getattr
_i
n
struct
{
type
Getattr
I
n
struct
{
Getattr_flags
uint32
Dummy
uint32
Fh
uint64
}
type
Attr
_o
ut
struct
{
type
Attr
O
ut
struct
{
Attr_valid
uint64
/* Cache timeout for the attributes */
Attr_valid_nsec
uint32
Dummy
uint32
...
...
@@ -252,32 +252,32 @@ type Attr_out struct {
}
type
Mknod
_i
n
struct
{
type
Mknod
I
n
struct
{
Mode
uint32
Rdev
uint32
Umask
uint32
Padding
uint32
}
type
Mkdir
_i
n
struct
{
type
Mkdir
I
n
struct
{
Mode
uint32
Umask
uint32
}
type
Rename
_i
n
struct
{
type
Rename
I
n
struct
{
Newdir
uint64
}
type
Link
_i
n
struct
{
type
Link
I
n
struct
{
Oldnodeid
uint64
}
type
Setattr
_i
n
struct
{
type
Setattr
I
n
struct
{
Valid
uint32
Padding
uint32
Fh
uint64
Size
uint64
Lock
_o
wner
uint64
Lock
O
wner
uint64
Atime
uint64
Mtime
uint64
Unused2
uint64
...
...
@@ -291,158 +291,158 @@ type Setattr_in struct {
Unused5
uint32
}
type
Open
_i
n
struct
{
type
Open
I
n
struct
{
Flags
uint32
Unused
uint32
}
type
Create
_i
n
struct
{
type
Create
I
n
struct
{
Flags
uint32
Mode
uint32
Umask
uint32
Padding
uint32
}
type
Open
_o
ut
struct
{
type
Open
O
ut
struct
{
Fh
uint64
Open_flags
uint32
Padding
uint32
}
type
Release
_i
n
struct
{
type
Release
I
n
struct
{
Fh
uint64
Flags
uint32
Release_flags
uint32
Lock
_o
wner
uint64
Lock
O
wner
uint64
}
type
Flush
_i
n
struct
{
type
Flush
I
n
struct
{
Fh
uint64
Unused
uint32
Padding
uint32
Lock
_o
wner
uint64
Lock
O
wner
uint64
}
type
Read
_i
n
struct
{
type
Read
I
n
struct
{
Fh
uint64
Offset
uint64
Size
uint32
Read_flags
uint32
Lock
_o
wner
uint64
Lock
O
wner
uint64
Flags
uint32
Padding
uint32
}
type
Write
_i
n
struct
{
type
Write
I
n
struct
{
Fh
uint64
Offset
uint64
Size
uint32
Write_flags
uint32
Lock
_o
wner
uint64
Lock
O
wner
uint64
Flags
uint32
Padding
uint32
}
type
Write
_o
ut
struct
{
type
Write
O
ut
struct
{
Size
uint32
Padding
uint32
}
type
Statfs
_o
ut
struct
{
type
Statfs
O
ut
struct
{
St
Kstatfs
}
type
Fsync
_i
n
struct
{
type
Fsync
I
n
struct
{
Fh
uint64
Fsync_flags
uint32
Padding
uint32
}
type
Setxattr
_i
n
struct
{
type
Setxattr
I
n
struct
{
Size
uint32
Flags
uint32
}
type
Getxattr
_i
n
struct
{
type
Getxattr
I
n
struct
{
Size
uint32
Padding
uint32
}
type
Getxattr
_o
ut
struct
{
type
Getxattr
O
ut
struct
{
Size
uint32
Padding
uint32
}
type
Lk
_i
n
struct
{
type
Lk
I
n
struct
{
Fh
uint64
Owner
uint64
Lk
File
_l
ock
Lk
File
L
ock
Lk_flags
uint32
Padding
uint32
}
type
Lk
_o
ut
struct
{
Lk
File
_l
ock
type
Lk
O
ut
struct
{
Lk
File
L
ock
}
type
Access
_i
n
struct
{
type
Access
I
n
struct
{
Mask
uint32
Padding
uint32
}
type
Init
_i
n
struct
{
type
Init
I
n
struct
{
Major
uint32
Minor
uint32
Max_readahead
uint32
Flags
uint32
}
type
Init
_o
ut
struct
{
type
Init
O
ut
struct
{
Major
uint32
Minor
uint32
Max_readahead
uint32
Flags
uint32
Max_background
uint16
Congestion_threshold
uint16
Max
_w
rite
uint32
Max
W
rite
uint32
}
type
Cuse
_init_i
n
struct
{
type
Cuse
InitI
n
struct
{
Major
uint32
Minor
uint32
Unused
uint32
Flags
uint32
}
type
Cuse
_init_o
ut
struct
{
type
Cuse
InitO
ut
struct
{
Major
uint32
Minor
uint32
Unused
uint32
Flags
uint32
Max_read
uint32
Max
_w
rite
uint32
Max
W
rite
uint32
Dev_major
uint32
/* chardev major */
Dev_minor
uint32
/* chardev minor */
Spare
[
10
]
uint32
}
type
Interrupt
_i
n
struct
{
type
Interrupt
I
n
struct
{
Unique
uint64
}
type
Bmap
_i
n
struct
{
type
Bmap
I
n
struct
{
Block
uint64
Blocksize
uint32
Padding
uint32
}
type
Bmap
_o
ut
struct
{
type
Bmap
O
ut
struct
{
Block
uint64
}
type
Ioctl
_i
n
struct
{
type
Ioctl
I
n
struct
{
Fh
uint64
Flags
uint32
Cmd
uint32
...
...
@@ -451,30 +451,30 @@ type Ioctl_in struct {
Out_size
uint32
}
type
Ioctl
_o
ut
struct
{
type
Ioctl
O
ut
struct
{
Result
int32
Flags
uint32
In
_i
ovs
uint32
Out
_i
ovs
uint32
In
I
ovs
uint32
Out
I
ovs
uint32
}
type
Poll
_i
n
struct
{
type
Poll
I
n
struct
{
Fh
uint64
Kh
uint64
Flags
uint32
Padding
uint32
}
type
Poll
_o
ut
struct
{
type
Poll
O
ut
struct
{
Revents
uint32
Padding
uint32
}
type
Notify
_poll_wakeup_o
ut
struct
{
type
Notify
PollWakeupO
ut
struct
{
Kh
uint64
}
type
In
_h
eader
struct
{
type
In
H
eader
struct
{
Length
uint32
Opcode
uint32
Unique
uint64
...
...
@@ -485,7 +485,7 @@ type In_header struct {
Padding
uint32
}
type
Out
_h
eader
struct
{
type
Out
H
eader
struct
{
Length
uint32
Error
int32
Unique
uint64
...
...
@@ -499,13 +499,13 @@ type Dirent struct {
// name []byte // char name[0] -- looks like the name is right after this struct.
}
type
Notify
_inval_inode_o
ut
struct
{
type
Notify
InvalInodeO
ut
struct
{
Ino
uint64
Off
int64
Length
int64
}
type
Notify
_inval_entry_o
ut
struct
{
type
Notify
InvalEntryO
ut
struct
{
Parent
uint64
Namelen
uint32
Padding
uint32
...
...
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