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
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
}
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