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
6fffc704
Commit
6fffc704
authored
Aug 11, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gomake succeeds, gofmt make the code looks nice
parent
4fc8c487
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
300 additions
and
303 deletions
+300
-303
fuse/fuse.go
fuse/fuse.go
+300
-303
No files found.
fuse/fuse.go
View file @
6fffc704
...
...
@@ -2,91 +2,91 @@ package fuse
const
(
/** Version number of this interface */
FUSE_KERNEL_VERSION
=
7
/** Version number of this interface */
FUSE_KERNEL_VERSION
=
7
/** Minor version number of this interface */
FUSE_KERNEL_MINOR_VERSION
=
13
/** Minor version number of this interface */
FUSE_KERNEL_MINOR_VERSION
=
13
/** The node ID of the root inode */
FUSE_ROOT_ID
=
1
/** The node ID of the root inode */
FUSE_ROOT_ID
=
1
/**
/**
* Bitmasks for fuse_setattr_in.valid
*/
FATTR_MODE
=
(
1
<<
0
)
FATTR_UID
=
(
1
<<
1
)
FATTR_GID
=
(
1
<<
2
)
FATTR_SIZE
=
(
1
<<
3
)
FATTR_ATIME
=
(
1
<<
4
)
FATTR_MTIME
=
(
1
<<
5
)
FATTR_FH
=
(
1
<<
6
)
FATTR_ATIME_NOW
=
(
1
<<
7
)
FATTR_MTIME_NOW
=
(
1
<<
8
)
FATTR_LOCKOWNER
=
(
1
<<
9
)
/**
FATTR_MODE
=
(
1
<<
0
)
FATTR_UID
=
(
1
<<
1
)
FATTR_GID
=
(
1
<<
2
)
FATTR_SIZE
=
(
1
<<
3
)
FATTR_ATIME
=
(
1
<<
4
)
FATTR_MTIME
=
(
1
<<
5
)
FATTR_FH
=
(
1
<<
6
)
FATTR_ATIME_NOW
=
(
1
<<
7
)
FATTR_MTIME_NOW
=
(
1
<<
8
)
FATTR_LOCKOWNER
=
(
1
<<
9
)
/**
* Flags returned by the OPEN request
*
* FOPEN_DIRECT_IO: bypass page cache for this open file
* FOPEN_KEEP_CACHE: don't invalidate the data cache on open
* FOPEN_NONSEEKABLE: the file is not seekable
*/
FOPEN_DIRECT_IO
=
(
1
<<
0
)
FOPEN_KEEP_CACHE
=
(
1
<<
1
)
FOPEN_NONSEEKABLE
=
(
1
<<
2
)
FOPEN_DIRECT_IO
=
(
1
<<
0
)
FOPEN_KEEP_CACHE
=
(
1
<<
1
)
FOPEN_NONSEEKABLE
=
(
1
<<
2
)
/**
/**
* INIT request/reply flags
*
* FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."
* FUSE_DONT_MASK: don't apply umask to file mode on create operations
*/
FUSE_ASYNC_READ
=
(
1
<<
0
)
FUSE_POSIX_LOCKS
=
(
1
<<
1
)
FUSE_FILE_OPS
=
(
1
<<
2
)
FUSE_ATOMIC_O_TRUNC
=
(
1
<<
3
)
FUSE_EXPORT_SUPPORT
=
(
1
<<
4
)
FUSE_BIG_WRITES
=
(
1
<<
5
)
FUSE_DONT_MASK
=
(
1
<<
6
)
/**
FUSE_ASYNC_READ
=
(
1
<<
0
)
FUSE_POSIX_LOCKS
=
(
1
<<
1
)
FUSE_FILE_OPS
=
(
1
<<
2
)
FUSE_ATOMIC_O_TRUNC
=
(
1
<<
3
)
FUSE_EXPORT_SUPPORT
=
(
1
<<
4
)
FUSE_BIG_WRITES
=
(
1
<<
5
)
FUSE_DONT_MASK
=
(
1
<<
6
)
/**
* CUSE INIT request/reply flags
*
* CUSE_UNRESTRICTED_IOCTL: use unrestricted ioctl
*/
CUSE_UNRESTRICTED_IOCTL
=
(
1
<<
0
)
CUSE_UNRESTRICTED_IOCTL
=
(
1
<<
0
)
/**
/**
* Release flags
*/
FUSE_RELEASE_FLUSH
=
(
1
<<
0
)
FUSE_RELEASE_FLUSH
=
(
1
<<
0
)
/**
/**
* Getattr flags
*/
FUSE_GETATTR_FH
=
(
1
<<
0
)
FUSE_GETATTR_FH
=
(
1
<<
0
)
/**
/**
* Lock flags
*/
FUSE_LK_FLOCK
=
(
1
<<
0
)
FUSE_LK_FLOCK
=
(
1
<<
0
)
/**
/**
* WRITE flags
*
* FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed
* FUSE_WRITE_LOCKOWNER: lock_owner field is valid
*/
FUSE_WRITE_CACHE
=
(
1
<<
0
)
FUSE_WRITE_LOCKOWNER
=
(
1
<<
1
)
FUSE_WRITE_CACHE
=
(
1
<<
0
)
FUSE_WRITE_LOCKOWNER
=
(
1
<<
1
)
/**
/**
* Read flags
*/
FUSE_READ_LOCKOWNER
=
(
1
<<
1
)
FUSE_READ_LOCKOWNER
=
(
1
<<
1
)
/**
/**
* Ioctl flags
*
* FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine
...
...
@@ -95,34 +95,33 @@ FUSE_READ_LOCKOWNER = (1 << 1)
*
* FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs
*/
FUSE_IOCTL_COMPAT
=
(
1
<<
0
)
FUSE_IOCTL_UNRESTRICTED
=
(
1
<<
1
)
FUSE_IOCTL_RETRY
=
(
1
<<
2
)
FUSE_IOCTL_COMPAT
=
(
1
<<
0
)
FUSE_IOCTL_UNRESTRICTED
=
(
1
<<
1
)
FUSE_IOCTL_RETRY
=
(
1
<<
2
)
FUSE_IOCTL_MAX_IOV
=
256
FUSE_IOCTL_MAX_IOV
=
256
/**
/**
* Poll flags
*
* FUSE_POLL_SCHEDULE_NOTIFY: request poll notify
*/
FUSE_POLL_SCHEDULE_NOTIFY
=
(
1
<<
0
)
FUSE_POLL_SCHEDULE_NOTIFY
=
(
1
<<
0
)
FUSE_COMPAT_WRITE_IN_SIZE
=
24
FUSE_COMPAT_WRITE_IN_SIZE
=
24
/* The read buffer is required to be at least 8k, but may be much larger */
FUSE_MIN_READ_BUFFER
=
8192
/* The read buffer is required to be at least 8k, but may be much larger */
FUSE_MIN_READ_BUFFER
=
8192
FUSE_COMPAT_ENTRY_OUT_SIZE
=
120
FUSE_COMPAT_ENTRY_OUT_SIZE
=
120
FUSE_COMPAT_ATTR_OUT_SIZE
=
96
FUSE_COMPAT_ATTR_OUT_SIZE
=
96
FUSE_COMPAT_MKNOD_IN_SIZE
=
8
FUSE_COMPAT_MKNOD_IN_SIZE
=
8
FUSE_COMPAT_STATFS_SIZE
=
48
CUSE_INIT_INFO_MAX
=
4096
FUSE_COMPAT_STATFS_SIZE
=
48
CUSE_INIT_INFO_MAX
=
4096
)
type
fuse_opcode
int
...
...
@@ -223,7 +222,6 @@ type fuse_file_lock struct {
}
type
fuse_entry_out
struct
{
nodeid
uint64
/* Inode ID */
generation
uint64
/* Inode generation: nodeid:gen must
...
...
@@ -498,7 +496,7 @@ type fuse_dirent struct {
off
uint64
namelen
uint32
typ
uint32
// name []byte // char name[0] -- looks like the name is right after this struct.
// name []byte // char name[0] -- looks like the name is right after this struct.
}
type
fuse_notify_inval_inode_out
struct
{
...
...
@@ -512,4 +510,3 @@ type fuse_notify_inval_entry_out struct {
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