Commit 6fffc704 authored by Ivan Krasin's avatar Ivan Krasin

gomake succeeds, gofmt make the code looks nice

parent 4fc8c487
...@@ -2,91 +2,91 @@ package fuse ...@@ -2,91 +2,91 @@ package fuse
const ( const (
/** Version number of this interface */ /** Version number of this interface */
FUSE_KERNEL_VERSION = 7 FUSE_KERNEL_VERSION = 7
/** Minor version number of this interface */ /** Minor version number of this interface */
FUSE_KERNEL_MINOR_VERSION = 13 FUSE_KERNEL_MINOR_VERSION = 13
/** The node ID of the root inode */ /** The node ID of the root inode */
FUSE_ROOT_ID = 1 FUSE_ROOT_ID = 1
/** /**
* Bitmasks for fuse_setattr_in.valid * Bitmasks for fuse_setattr_in.valid
*/ */
FATTR_MODE = (1 << 0) FATTR_MODE = (1 << 0)
FATTR_UID = (1 << 1) FATTR_UID = (1 << 1)
FATTR_GID = (1 << 2) FATTR_GID = (1 << 2)
FATTR_SIZE = (1 << 3) FATTR_SIZE = (1 << 3)
FATTR_ATIME = (1 << 4) FATTR_ATIME = (1 << 4)
FATTR_MTIME = (1 << 5) FATTR_MTIME = (1 << 5)
FATTR_FH = (1 << 6) FATTR_FH = (1 << 6)
FATTR_ATIME_NOW = (1 << 7) FATTR_ATIME_NOW = (1 << 7)
FATTR_MTIME_NOW = (1 << 8) FATTR_MTIME_NOW = (1 << 8)
FATTR_LOCKOWNER = (1 << 9) FATTR_LOCKOWNER = (1 << 9)
/** /**
* Flags returned by the OPEN request * Flags returned by the OPEN request
* *
* FOPEN_DIRECT_IO: bypass page cache for this open file * FOPEN_DIRECT_IO: bypass page cache for this open file
* FOPEN_KEEP_CACHE: don't invalidate the data cache on open * FOPEN_KEEP_CACHE: don't invalidate the data cache on open
* FOPEN_NONSEEKABLE: the file is not seekable * FOPEN_NONSEEKABLE: the file is not seekable
*/ */
FOPEN_DIRECT_IO = (1 << 0) FOPEN_DIRECT_IO = (1 << 0)
FOPEN_KEEP_CACHE = (1 << 1) FOPEN_KEEP_CACHE = (1 << 1)
FOPEN_NONSEEKABLE = (1 << 2) FOPEN_NONSEEKABLE = (1 << 2)
/** /**
* INIT request/reply flags * INIT request/reply flags
* *
* FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".." * FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."
* FUSE_DONT_MASK: don't apply umask to file mode on create operations * FUSE_DONT_MASK: don't apply umask to file mode on create operations
*/ */
FUSE_ASYNC_READ = (1 << 0) FUSE_ASYNC_READ = (1 << 0)
FUSE_POSIX_LOCKS = (1 << 1) FUSE_POSIX_LOCKS = (1 << 1)
FUSE_FILE_OPS = (1 << 2) FUSE_FILE_OPS = (1 << 2)
FUSE_ATOMIC_O_TRUNC = (1 << 3) FUSE_ATOMIC_O_TRUNC = (1 << 3)
FUSE_EXPORT_SUPPORT = (1 << 4) FUSE_EXPORT_SUPPORT = (1 << 4)
FUSE_BIG_WRITES = (1 << 5) FUSE_BIG_WRITES = (1 << 5)
FUSE_DONT_MASK = (1 << 6) FUSE_DONT_MASK = (1 << 6)
/** /**
* CUSE INIT request/reply flags * CUSE INIT request/reply flags
* *
* CUSE_UNRESTRICTED_IOCTL: use unrestricted ioctl * CUSE_UNRESTRICTED_IOCTL: use unrestricted ioctl
*/ */
CUSE_UNRESTRICTED_IOCTL = (1 << 0) CUSE_UNRESTRICTED_IOCTL = (1 << 0)
/** /**
* Release flags * Release flags
*/ */
FUSE_RELEASE_FLUSH = (1 << 0) FUSE_RELEASE_FLUSH = (1 << 0)
/** /**
* Getattr flags * Getattr flags
*/ */
FUSE_GETATTR_FH = (1 << 0) FUSE_GETATTR_FH = (1 << 0)
/** /**
* Lock flags * Lock flags
*/ */
FUSE_LK_FLOCK = (1 << 0) FUSE_LK_FLOCK = (1 << 0)
/** /**
* WRITE flags * WRITE flags
* *
* FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed * FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed
* FUSE_WRITE_LOCKOWNER: lock_owner field is valid * FUSE_WRITE_LOCKOWNER: lock_owner field is valid
*/ */
FUSE_WRITE_CACHE = (1 << 0) FUSE_WRITE_CACHE = (1 << 0)
FUSE_WRITE_LOCKOWNER = (1 << 1) FUSE_WRITE_LOCKOWNER = (1 << 1)
/** /**
* Read flags * Read flags
*/ */
FUSE_READ_LOCKOWNER = (1 << 1) FUSE_READ_LOCKOWNER = (1 << 1)
/** /**
* Ioctl flags * Ioctl flags
* *
* FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine * FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine
...@@ -95,34 +95,33 @@ FUSE_READ_LOCKOWNER = (1 << 1) ...@@ -95,34 +95,33 @@ FUSE_READ_LOCKOWNER = (1 << 1)
* *
* FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs * FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs
*/ */
FUSE_IOCTL_COMPAT = (1 << 0) FUSE_IOCTL_COMPAT = (1 << 0)
FUSE_IOCTL_UNRESTRICTED = (1 << 1) FUSE_IOCTL_UNRESTRICTED = (1 << 1)
FUSE_IOCTL_RETRY = (1 << 2) FUSE_IOCTL_RETRY = (1 << 2)
FUSE_IOCTL_MAX_IOV = 256 FUSE_IOCTL_MAX_IOV = 256
/** /**
* Poll flags * Poll flags
* *
* FUSE_POLL_SCHEDULE_NOTIFY: request poll notify * 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 */ /* The read buffer is required to be at least 8k, but may be much larger */
FUSE_MIN_READ_BUFFER = 8192 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 FUSE_COMPAT_STATFS_SIZE = 48
CUSE_INIT_INFO_MAX = 4096
CUSE_INIT_INFO_MAX = 4096
) )
type fuse_opcode int type fuse_opcode int
...@@ -223,7 +222,6 @@ type fuse_file_lock struct { ...@@ -223,7 +222,6 @@ type fuse_file_lock struct {
} }
type fuse_entry_out struct { type fuse_entry_out struct {
nodeid uint64 /* Inode ID */ nodeid uint64 /* Inode ID */
generation uint64 /* Inode generation: nodeid:gen must generation uint64 /* Inode generation: nodeid:gen must
...@@ -498,7 +496,7 @@ type fuse_dirent struct { ...@@ -498,7 +496,7 @@ type fuse_dirent struct {
off uint64 off uint64
namelen uint32 namelen uint32
typ 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 { type fuse_notify_inval_inode_out struct {
...@@ -512,4 +510,3 @@ type fuse_notify_inval_entry_out struct { ...@@ -512,4 +510,3 @@ type fuse_notify_inval_entry_out struct {
namelen uint32 namelen uint32
padding uint32 padding uint32
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment