Documentation ¶
Index ¶
- Constants
- func AttrOutSize(p Protocol) uintptr
- func CreateInSize(p Protocol) uintptr
- func EntryOutSize(p Protocol) uintptr
- func LkInSize(p Protocol) uintptr
- func MkdirInSize(p Protocol) uintptr
- func MknodInSize(p Protocol) uintptr
- func ReadInSize(p Protocol) uintptr
- func WriteInSize(p Protocol) uintptr
- type AccessIn
- type Attr
- type AttrOut
- type BmapIn
- type BmapOut
- type CreateIn
- type Dirent
- type EntryOut
- type ExchangeIn
- type FallocateIn
- type FlushIn
- type ForgetIn
- type FsyncIn
- type GetattrFlags
- type GetattrIn
- type GetxattrIn
- type GetxattrOut
- type GetxtimesOut
- type InHeader
- type InitFlags
- type InitIn
- type InitOut
- type InterruptIn
- type Kstatfs
- type LinkIn
- type ListxattrIn
- type LkIn
- type LkOut
- type MkdirIn
- type MknodIn
- type NotifyInvalEntryOut
- type NotifyInvalInodeOut
- type OpenFlags
- type OpenIn
- type OpenOut
- type OpenResponseFlags
- type OutHeader
- type Protocol
- func (a Protocol) GE(b Protocol) bool
- func (a Protocol) HasAttrBlockSize() bool
- func (a Protocol) HasGetattrFlags() bool
- func (a Protocol) HasInvalidate() bool
- func (a Protocol) HasOpenNonSeekable() bool
- func (a Protocol) HasReadWriteFlags() bool
- func (a Protocol) HasUmask() bool
- func (a Protocol) LT(b Protocol) bool
- func (p Protocol) String() string
- type ReadFlags
- type ReadIn
- type ReleaseFlags
- type ReleaseIn
- type RenameIn
- type SetattrIn
- type SetattrValid
- func (fl SetattrValid) Atime() bool
- func (fl SetattrValid) AtimeNow() bool
- func (fl SetattrValid) Bkuptime() bool
- func (fl SetattrValid) Chgtime() bool
- func (fl SetattrValid) Crtime() bool
- func (fl SetattrValid) Flags() bool
- func (fl SetattrValid) Gid() bool
- func (fl SetattrValid) Handle() bool
- func (fl SetattrValid) LockOwner() bool
- func (fl SetattrValid) Mode() bool
- func (fl SetattrValid) Mtime() bool
- func (fl SetattrValid) MtimeNow() bool
- func (fl SetattrValid) Size() bool
- func (fl SetattrValid) String() string
- func (fl SetattrValid) Uid() bool
- type SetxattrIn
- type StatfsOut
- type WriteFlags
- type WriteIn
- type WriteOut
Constants ¶
const ( ProtoVersionMinMajor = 7 ProtoVersionMinMinor = 19 ProtoVersionMaxMajor = 7 ProtoVersionMaxMinor = 31 )
The FUSE version implemented by the package.
const ( OpLookup = 1 OpForget = 2 // no reply OpGetattr = 3 OpSetattr = 4 OpReadlink = 5 OpSymlink = 6 OpMknod = 8 OpMkdir = 9 OpUnlink = 10 OpRmdir = 11 OpRename = 12 OpLink = 13 OpOpen = 14 OpRead = 15 OpWrite = 16 OpStatfs = 17 OpRelease = 18 OpFsync = 20 OpSetxattr = 21 OpGetxattr = 22 OpListxattr = 23 OpRemovexattr = 24 OpFlush = 25 OpInit = 26 OpOpendir = 27 OpReaddir = 28 OpReleasedir = 29 OpFsyncdir = 30 OpGetlk = 31 OpSetlk = 32 OpSetlkw = 33 OpAccess = 34 OpCreate = 35 OpInterrupt = 36 OpBmap = 37 OpDestroy = 38 OpIoctl = 39 // Linux? OpPoll = 40 // Linux? OpFallocate = 43 // OS X OpSetvolname = 61 OpGetxtimes = 62 OpExchange = 63 )
Opcodes
const ( NotifyCodePoll int32 = 1 NotifyCodeInvalInode int32 = 2 NotifyCodeInvalEntry int32 = 3 )
const DirentSize = 8 + 8 + 4 + 4
const InHeaderSize = int(unsafe.Sizeof(InHeader{}))
const InitInSize = int(unsafe.Sizeof(InitIn{}))
const (
RootID = 1
)
Variables ¶
This section is empty.
Functions ¶
func AttrOutSize ¶
func CreateInSize ¶
func EntryOutSize ¶
func MkdirInSize ¶
func MknodInSize ¶
func ReadInSize ¶
func WriteInSize ¶
Types ¶
type Attr ¶
type FallocateIn ¶
type GetattrFlags ¶
type GetattrFlags uint32
GetattrFlags are bit flags that can be seen in GetattrRequest.
const ( // Indicates the handle is valid. GetattrFh GetattrFlags = 1 << 0 )
func (GetattrFlags) String ¶
func (fl GetattrFlags) String() string
type GetxattrIn ¶
type GetxattrIn struct {
// contains filtered or unexported fields
}
func (GetxattrIn) GetPosition ¶
func (GetxattrIn) GetPosition() uint32
type GetxattrOut ¶
type GetxtimesOut ¶
OS X
type InitFlags ¶
type InitFlags uint32
The InitFlags are used in the Init exchange.
const ( InitAsyncRead InitFlags = 1 << 0 InitPosixLocks InitFlags = 1 << 1 InitFileOps InitFlags = 1 << 2 InitAtomicTrunc InitFlags = 1 << 3 InitExportSupport InitFlags = 1 << 4 InitBigWrites InitFlags = 1 << 5 InitDontMask InitFlags = 1 << 6 InitSpliceWrite InitFlags = 1 << 7 InitSpliceMove InitFlags = 1 << 8 InitSpliceRead InitFlags = 1 << 9 InitFlockLocks InitFlags = 1 << 10 InitHasIoctlDir InitFlags = 1 << 11 InitAutoInvalData InitFlags = 1 << 12 InitDoReaddirplus InitFlags = 1 << 13 InitReaddirplusAuto InitFlags = 1 << 14 InitAsyncDIO InitFlags = 1 << 15 InitWritebackCache InitFlags = 1 << 16 InitNoOpenSupport InitFlags = 1 << 17 InitMaxPages InitFlags = 1 << 22 InitCacheSymlinks InitFlags = 1 << 23 InitNoOpendirSupport InitFlags = 1 << 24 InitCaseSensitive InitFlags = 1 << 29 // OS X only InitVolRename InitFlags = 1 << 30 // OS X only InitXtimes InitFlags = 1 << 31 // OS X only )
type InterruptIn ¶
type InterruptIn struct {
Unique uint64
}
type ListxattrIn ¶
type NotifyInvalEntryOut ¶
type NotifyInvalInodeOut ¶
type OpenFlags ¶
type OpenFlags uint32
OpenFlags are the O_FOO flags passed to open/create/etc calls. For example, os.O_WRONLY | os.O_APPEND.
const ( // Access modes. These are not 1-bit flags, but alternatives where // only one can be chosen. See the IsReadOnly etc convenience // methods. OpenReadOnly OpenFlags = syscall.O_RDONLY OpenWriteOnly OpenFlags = syscall.O_WRONLY OpenReadWrite OpenFlags = syscall.O_RDWR OpenAppend OpenFlags = syscall.O_APPEND OpenCreate OpenFlags = syscall.O_CREAT OpenExclusive OpenFlags = syscall.O_EXCL OpenSync OpenFlags = syscall.O_SYNC OpenTruncate OpenFlags = syscall.O_TRUNC )
Flags that can be seen in OpenRequest.Flags.
OpenAccessModeMask is a bitmask that separates the access mode from the other flags in OpenFlags.
func (OpenFlags) IsReadOnly ¶
Return true if OpenReadOnly is set.
func (OpenFlags) IsReadWrite ¶
Return true if OpenReadWrite is set.
func (OpenFlags) IsWriteOnly ¶
Return true if OpenWriteOnly is set.
type OpenResponseFlags ¶
type OpenResponseFlags uint32
The OpenResponseFlags are returned in the OpenResponse.
const ( OpenDirectIO OpenResponseFlags = 1 << 0 // bypass page cache for this open file OpenKeepCache OpenResponseFlags = 1 << 1 // don't invalidate the data cache on open OpenNonSeekable OpenResponseFlags = 1 << 2 // mark the file as non-seekable (not supported on OS X) OpenPurgeAttr OpenResponseFlags = 1 << 30 // OS X OpenPurgeUBC OpenResponseFlags = 1 << 31 // OS X )
func (OpenResponseFlags) String ¶
func (fl OpenResponseFlags) String() string
type Protocol ¶
Protocol is a FUSE protocol version number.
func (Protocol) HasAttrBlockSize ¶
HasAttrBlockSize returns whether Attr.BlockSize is respected by the kernel.
func (Protocol) HasGetattrFlags ¶
HasGetattrFlags returns whether GetattrRequest field Flags is valid.
func (Protocol) HasInvalidate ¶
HasInvalidate returns whether InvalidateNode/InvalidateEntry are supported.
func (Protocol) HasOpenNonSeekable ¶
HasOpenNonSeekable returns whether OpenResponse field Flags flag OpenNonSeekable is supported.
func (Protocol) HasReadWriteFlags ¶
HasReadWriteFlags returns whether ReadRequest/WriteRequest fields Flags and FileFlags are valid.
type ReadFlags ¶
type ReadFlags uint32
The ReadFlags are passed in ReadRequest.
const ( // LockOwner field is valid. ReadLockOwner ReadFlags = 1 << 1 )
type ReleaseFlags ¶
type ReleaseFlags uint32
The ReleaseFlags are used in the Release exchange.
const (
ReleaseFlush ReleaseFlags = 1 << 0
)
func (ReleaseFlags) String ¶
func (fl ReleaseFlags) String() string
type SetattrValid ¶
type SetattrValid uint32
The SetattrValid are bit flags describing which fields in the SetattrRequest are included in the change.
const ( SetattrMode SetattrValid = 1 << 0 SetattrUid SetattrValid = 1 << 1 SetattrGid SetattrValid = 1 << 2 SetattrSize SetattrValid = 1 << 3 SetattrAtime SetattrValid = 1 << 4 SetattrMtime SetattrValid = 1 << 5 SetattrHandle SetattrValid = 1 << 6 // Linux only(?) SetattrAtimeNow SetattrValid = 1 << 7 SetattrMtimeNow SetattrValid = 1 << 8 SetattrLockOwner SetattrValid = 1 << 9 // http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg27852.html // OS X only SetattrCrtime SetattrValid = 1 << 28 SetattrChgtime SetattrValid = 1 << 29 SetattrBkuptime SetattrValid = 1 << 30 SetattrFlags SetattrValid = 1 << 31 )
func (SetattrValid) Atime ¶
func (fl SetattrValid) Atime() bool
func (SetattrValid) AtimeNow ¶
func (fl SetattrValid) AtimeNow() bool
func (SetattrValid) Bkuptime ¶
func (fl SetattrValid) Bkuptime() bool
func (SetattrValid) Chgtime ¶
func (fl SetattrValid) Chgtime() bool
func (SetattrValid) Crtime ¶
func (fl SetattrValid) Crtime() bool
func (SetattrValid) Flags ¶
func (fl SetattrValid) Flags() bool
func (SetattrValid) Gid ¶
func (fl SetattrValid) Gid() bool
func (SetattrValid) Handle ¶
func (fl SetattrValid) Handle() bool
func (SetattrValid) LockOwner ¶
func (fl SetattrValid) LockOwner() bool
func (SetattrValid) Mode ¶
func (fl SetattrValid) Mode() bool
func (SetattrValid) Mtime ¶
func (fl SetattrValid) Mtime() bool
func (SetattrValid) MtimeNow ¶
func (fl SetattrValid) MtimeNow() bool
func (SetattrValid) Size ¶
func (fl SetattrValid) Size() bool
func (SetattrValid) String ¶
func (fl SetattrValid) String() string
func (SetattrValid) Uid ¶
func (fl SetattrValid) Uid() bool
type SetxattrIn ¶
type SetxattrIn struct {
// contains filtered or unexported fields
}
func (SetxattrIn) GetPosition ¶
func (SetxattrIn) GetPosition() uint32
type WriteFlags ¶
type WriteFlags uint32
The WriteFlags are passed in WriteRequest.
const ( WriteCache WriteFlags = 1 << 0 // LockOwner field is valid. WriteLockOwner WriteFlags = 1 << 1 )
func (WriteFlags) String ¶
func (fl WriteFlags) String() string