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
dbeda721
Commit
dbeda721
authored
Aug 11, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fields are Go-ish
parent
7ad6068a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
187 additions
and
187 deletions
+187
-187
fuse/fuse.go
fuse/fuse.go
+187
-187
No files found.
fuse/fuse.go
View file @
dbeda721
...
@@ -129,42 +129,42 @@ CUSE_INIT_INFO_MAX = 4096
...
@@ -129,42 +129,42 @@ CUSE_INIT_INFO_MAX = 4096
userspace works under 64bit kernels */
userspace works under 64bit kernels */
type
fuse_attr
struct
{
type
fuse_attr
struct
{
__u64
ino
;
ino
__u64
__u64
size
;
size
__u64
__u64
blocks
;
blocks
__u64
__u64
atime
;
atime
__u64
__u64
mtime
;
mtime
__u64
__u64
ctime
;
ctime
__u64
__u32
atimensec
;
atimensec
__u32
__u32
mtimensec
;
mtimensec
__u32
__u32
ctimensec
;
ctimensec
__u32
__u32
mode
;
mode
__u32
__u32
nlink
;
nlink
__u32
__u32
uid
;
uid
__u32
__u32
gid
;
gid
__u32
__u32
rdev
;
rdev
__u32
__u32
blksize
;
blksize
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_kstatfs
struct
{
type
fuse_kstatfs
struct
{
__u64
blocks
;
blocks
__u64
__u64
bfree
;
bfree
__u64
__u64
bavail
;
bavail
__u64
__u64
files
;
files
__u64
__u64
ffree
;
ffree
__u64
__u32
bsize
;
bsize
__u32
__u32
namelen
;
namelen
__u32
__u32
frsize
;
frsize
__u32
__u32
padding
;
padding
__u32
__u32
spare
[
6
];
__u32
spare
[
6
];
};
};
type
fuse_file_lock
struct
{
type
fuse_file_lock
struct
{
__u64
start
;
start
__u64
__u64
end
;
end
__u64
__u32
type
;
type
__u32
__u32
pid
;
/* tgid */
pid
__u32
/* tgid */
};
};
enum
fuse_opcode
{
enum
fuse_opcode
{
...
@@ -219,291 +219,291 @@ enum fuse_notify_code {
...
@@ -219,291 +219,291 @@ enum fuse_notify_code {
};
};
type
fuse_entry_out
struct
{
type
fuse_entry_out
struct
{
__u64
nodeid
;
/* Inode ID */
nodeid
__u64
/* Inode ID */
__u64
generation
;
/* Inode generation: nodeid:gen must
generation
__u64
/* Inode generation: nodeid:gen must
be unique for the fs's lifetime */
be unique for the fs's lifetime */
__u64
entry_valid
;
/* Cache timeout for the name */
entry_valid
__u64
/* Cache timeout for the name */
__u64
attr_valid
;
/* Cache timeout for the attributes */
attr_valid
__u64
/* Cache timeout for the attributes */
__u32
entry_valid_nsec
;
entry_valid_nsec
__u32
__u32
attr_valid_nsec
;
attr_valid_nsec
__u32
struct
fuse_attr
attr
;
attr
fuse_attr
};
};
type
fuse_forget_in
struct
{
type
fuse_forget_in
struct
{
__u64
nlookup
;
nlookup
__u64
};
};
type
fuse_getattr_in
struct
{
type
fuse_getattr_in
struct
{
__u32
getattr_flags
;
getattr_flags
__u32
__u32
dummy
;
dummy
__u32
__u64
fh
;
fh
__u64
};
};
type
fuse_attr_out
struct
{
type
fuse_attr_out
struct
{
__u64
attr_valid
;
/* Cache timeout for the attributes */
attr_valid
__u64
/* Cache timeout for the attributes */
__u32
attr_valid_nsec
;
attr_valid_nsec
__u32
__u32
dummy
;
dummy
__u32
struct
fuse_attr
attr
;
attr
fuse_attr
};
};
type
fuse_mknod_in
struct
{
type
fuse_mknod_in
struct
{
__u32
mode
;
mode
__u32
__u32
rdev
;
rdev
__u32
__u32
umask
;
umask
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_mkdir_in
struct
{
type
fuse_mkdir_in
struct
{
__u32
mode
;
mode
__u32
__u32
umask
;
umask
__u32
};
};
type
fuse_rename_in
struct
{
type
fuse_rename_in
struct
{
__u64
newdir
;
newdir
__u64
};
};
type
fuse_link_in
struct
{
type
fuse_link_in
struct
{
__u64
oldnodeid
;
oldnodeid
__u64
};
};
type
fuse_setattr_in
struct
{
type
fuse_setattr_in
struct
{
__u32
valid
;
valid
__u32
__u32
padding
;
padding
__u32
__u64
fh
;
fh
__u64
__u64
size
;
size
__u64
__u64
lock_owner
;
lock_owner
__u64
__u64
atime
;
atime
__u64
__u64
mtime
;
mtime
__u64
__u64
unused2
;
unused2
__u64
__u32
atimensec
;
atimensec
__u32
__u32
mtimensec
;
mtimensec
__u32
__u32
unused3
;
unused3
__u32
__u32
mode
;
mode
__u32
__u32
unused4
;
unused4
__u32
__u32
uid
;
uid
__u32
__u32
gid
;
gid
__u32
__u32
unused5
;
unused5
__u32
};
};
type
fuse_open_in
struct
{
type
fuse_open_in
struct
{
__u32
flags
;
flags
__u32
__u32
unused
;
unused
__u32
};
};
type
fuse_create_in
struct
{
type
fuse_create_in
struct
{
__u32
flags
;
flags
__u32
__u32
mode
;
mode
__u32
__u32
umask
;
umask
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_open_out
struct
{
type
fuse_open_out
struct
{
__u64
fh
;
fh
__u64
__u32
open_flags
;
open_flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_release_in
struct
{
type
fuse_release_in
struct
{
__u64
fh
;
fh
__u64
__u32
flags
;
flags
__u32
__u32
release_flags
;
release_flags
__u32
__u64
lock_owner
;
lock_owner
__u64
};
};
type
fuse_flush_in
struct
{
type
fuse_flush_in
struct
{
__u64
fh
;
fh
__u64
__u32
unused
;
unused
__u32
__u32
padding
;
padding
__u32
__u64
lock_owner
;
lock_owner
__u64
};
};
type
fuse_read_in
struct
{
type
fuse_read_in
struct
{
__u64
fh
;
fh
__u64
__u64
offset
;
offset
__u64
__u32
size
;
size
__u32
__u32
read_flags
;
read_flags
__u32
__u64
lock_owner
;
lock_owner
__u64
__u32
flags
;
flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_write_in
struct
{
type
fuse_write_in
struct
{
__u64
fh
;
fh
__u64
__u64
offset
;
offset
__u64
__u32
size
;
size
__u32
__u32
write_flags
;
write_flags
__u32
__u64
lock_owner
;
lock_owner
__u64
__u32
flags
;
flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_write_out
struct
{
type
fuse_write_out
struct
{
__u32
size
;
size
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_statfs_out
struct
{
type
fuse_statfs_out
struct
{
st
ruct
fuse_kstatfs
st
;
st
fuse_kstatfs
};
};
type
fuse_fsync_in
struct
{
type
fuse_fsync_in
struct
{
__u64
fh
;
fh
__u64
__u32
fsync_flags
;
fsync_flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_setxattr_in
struct
{
type
fuse_setxattr_in
struct
{
__u32
size
;
size
__u32
__u32
flags
;
flags
__u32
};
};
type
fuse_getxattr_in
struct
{
type
fuse_getxattr_in
struct
{
__u32
size
;
size
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_getxattr_out
struct
{
type
fuse_getxattr_out
struct
{
__u32
size
;
size
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_lk_in
struct
{
type
fuse_lk_in
struct
{
__u64
fh
;
fh
__u64
__u64
owner
;
owner
__u64
struct
fuse_file_lock
lk
;
lk
fuse_file_lock
__u32
lk_flags
;
lk_flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_lk_out
struct
{
type
fuse_lk_out
struct
{
struct
fuse_file_lock
lk
;
lk
fuse_file_lock
};
};
type
fuse_access_in
struct
{
type
fuse_access_in
struct
{
__u32
mask
;
mask
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_init_in
struct
{
type
fuse_init_in
struct
{
__u32
major
;
major
__u32
__u32
minor
;
minor
__u32
__u32
max_readahead
;
max_readahead
__u32
__u32
flags
;
flags
__u32
};
};
type
fuse_init_out
struct
{
type
fuse_init_out
struct
{
__u32
major
;
major
__u32
__u32
minor
;
minor
__u32
__u32
max_readahead
;
max_readahead
__u32
__u32
flags
;
flags
__u32
__u16
max_background
;
__u16
max_background
__u16
congestion_threshold
;
__u16
congestion_threshold
__u32
max_write
;
max_write
__u32
};
};
type
cuse_init_in
struct
{
type
cuse_init_in
struct
{
__u32
major
;
major
__u32
__u32
minor
;
minor
__u32
__u32
unused
;
unused
__u32
__u32
flags
;
flags
__u32
};
};
type
cuse_init_out
struct
{
type
cuse_init_out
struct
{
__u32
major
;
major
__u32
__u32
minor
;
minor
__u32
__u32
unused
;
unused
__u32
__u32
flags
;
flags
__u32
__u32
max_read
;
max_read
__u32
__u32
max_write
;
max_write
__u32
__u32
dev_major
;
/* chardev major */
dev_major
__u32
/* chardev major */
__u32
dev_minor
;
/* chardev minor */
dev_minor
__u32
/* chardev minor */
__u32
spare
[
10
];
spare
[
10
]
__u32
};
};
type
fuse_interrupt_in
struct
{
type
fuse_interrupt_in
struct
{
__u64
unique
;
unique
__u64
};
};
type
fuse_bmap_in
struct
{
type
fuse_bmap_in
struct
{
__u64
block
;
block
__u64
__u32
blocksize
;
blocksize
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_bmap_out
struct
{
type
fuse_bmap_out
struct
{
__u64
block
;
block
__u64
};
};
type
fuse_ioctl_in
struct
{
type
fuse_ioctl_in
struct
{
__u64
fh
;
fh
__u64
__u32
flags
;
flags
__u32
__u32
cmd
;
cmd
__u32
__u64
arg
;
arg
__u64
__u32
in_size
;
in_size
__u32
__u32
out_size
;
out_size
__u32
};
};
type
fuse_ioctl_out
struct
{
type
fuse_ioctl_out
struct
{
__s32
result
;
result
__s32
__u32
flags
;
flags
__u32
__u32
in_iovs
;
in_iovs
__u32
__u32
out_iovs
;
out_iovs
__u32
};
};
type
fuse_poll_in
struct
{
type
fuse_poll_in
struct
{
__u64
fh
;
fh
__u64
__u64
kh
;
kh
__u64
__u32
flags
;
flags
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_poll_out
struct
{
type
fuse_poll_out
struct
{
__u32
revents
;
revents
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_notify_poll_wakeup_out
struct
{
type
fuse_notify_poll_wakeup_out
struct
{
__u64
kh
;
kh
__u64
};
};
type
fuse_in_header
struct
{
type
fuse_in_header
struct
{
__u32
len
;
len
__u32
__u32
opcode
;
opcode
__u32
__u64
unique
;
unique
__u64
__u64
nodeid
;
nodeid
__u64
__u32
uid
;
uid
__u32
__u32
gid
;
gid
__u32
__u32
pid
;
pid
__u32
__u32
padding
;
padding
__u32
};
};
type
fuse_out_header
struct
{
type
fuse_out_header
struct
{
__u32
len
;
len
__u32
__s32
error
;
error
__s32
__u64
unique
;
unique
__u64
};
};
type
fuse_dirent
struct
{
type
fuse_dirent
struct
{
__u64
ino
;
ino
__u64
__u64
off
;
off
__u64
__u32
namelen
;
namelen
__u32
__u32
type
;
typ
__u32
char
name
[
0
];
name
[]
byte
// char name[0]; -- looks like the name is right after this struct.
};
};
type
fuse_notify_inval_inode_out
struct
{
type
fuse_notify_inval_inode_out
struct
{
__u64
ino
;
ino
__u64
__s64
off
;
off
__s64
__s64
len
;
len
__s64
};
};
type
fuse_notify_inval_entry_out
struct
{
type
fuse_notify_inval_entry_out
struct
{
__u64
parent
;
parent
__u64
__u32
namelen
;
namelen
__u32
__u32
padding
;
padding
__u32
};
};
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