Killed unexported fields.

geesefs-0-30-9
Aaron Jacobs 2015-07-27 15:41:46 +10:00
parent b1b941d450
commit 56b1f10c47
1 changed files with 0 additions and 61 deletions

View File

@ -18,8 +18,6 @@ import (
"fmt" "fmt"
"os" "os"
"time" "time"
"github.com/jacobsa/fuse/internal/fusekernel"
) )
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
@ -29,9 +27,6 @@ import (
// Look up a child by name within a parent directory. The kernel sends this // Look up a child by name within a parent directory. The kernel sends this
// when resolving user paths to dentry structs, which are then cached. // when resolving user paths to dentry structs, which are then cached.
type LookUpInodeOp struct { type LookUpInodeOp struct {
commonOp
protocol fusekernel.Protocol
// The ID of the directory inode to which the child belongs. // The ID of the directory inode to which the child belongs.
Parent InodeID Parent InodeID
@ -63,9 +58,6 @@ func (o *LookUpInodeOp) ShortDesc() (desc string) {
// inode attributes is stale. This is controlled by the AttributesExpiration // inode attributes is stale. This is controlled by the AttributesExpiration
// field of ChildInodeEntry, etc. // field of ChildInodeEntry, etc.
type GetInodeAttributesOp struct { type GetInodeAttributesOp struct {
commonOp
protocol fusekernel.Protocol
// The inode of interest. // The inode of interest.
Inode InodeID Inode InodeID
@ -89,9 +81,6 @@ func (o *GetInodeAttributesOp) DebugString() string {
// The kernel sends this for obvious cases like chmod(2), and for less obvious // The kernel sends this for obvious cases like chmod(2), and for less obvious
// cases like ftrunctate(2). // cases like ftrunctate(2).
type SetInodeAttributesOp struct { type SetInodeAttributesOp struct {
commonOp
protocol fusekernel.Protocol
// The inode of interest. // The inode of interest.
Inode InodeID Inode InodeID
@ -148,8 +137,6 @@ type SetInodeAttributesOp struct {
// Rather they should take fuse.Connection.ReadOp returning io.EOF as // Rather they should take fuse.Connection.ReadOp returning io.EOF as
// implicitly decrementing all lookup counts to zero. // implicitly decrementing all lookup counts to zero.
type ForgetInodeOp struct { type ForgetInodeOp struct {
commonOp
// The inode whose reference count should be decremented. // The inode whose reference count should be decremented.
Inode InodeID Inode InodeID
@ -173,9 +160,6 @@ type ForgetInodeOp struct {
// //
// Therefore the file system should return EEXIST if the name already exists. // Therefore the file system should return EEXIST if the name already exists.
type MkDirOp struct { type MkDirOp struct {
commonOp
protocol fusekernel.Protocol
// The ID of parent directory inode within which to create the child. // The ID of parent directory inode within which to create the child.
Parent InodeID Parent InodeID
@ -206,9 +190,6 @@ func (o *MkDirOp) ShortDesc() (desc string) {
// //
// Therefore the file system should return EEXIST if the name already exists. // Therefore the file system should return EEXIST if the name already exists.
type CreateFileOp struct { type CreateFileOp struct {
commonOp
protocol fusekernel.Protocol
// The ID of parent directory inode within which to create the child file. // The ID of parent directory inode within which to create the child file.
Parent InodeID Parent InodeID
@ -241,9 +222,6 @@ func (o *CreateFileOp) ShortDesc() (desc string) {
// Create a symlink inode. If the name already exists, the file system should // Create a symlink inode. If the name already exists, the file system should
// return EEXIST (cf. the notes on CreateFileOp and MkDirOp). // return EEXIST (cf. the notes on CreateFileOp and MkDirOp).
type CreateSymlinkOp struct { type CreateSymlinkOp struct {
commonOp
protocol fusekernel.Protocol
// The ID of parent directory inode within which to create the child symlink. // The ID of parent directory inode within which to create the child symlink.
Parent InodeID Parent InodeID
@ -310,8 +288,6 @@ func (o *CreateSymlinkOp) ShortDesc() (desc string) {
// about this. // about this.
// //
type RenameOp struct { type RenameOp struct {
commonOp
// The old parent directory, and the name of the entry within it to be // The old parent directory, and the name of the entry within it to be
// relocated. // relocated.
OldParent InodeID OldParent InodeID
@ -331,8 +307,6 @@ type RenameOp struct {
// //
// Sample implementation in ext2: ext2_rmdir (http://goo.gl/B9QmFf) // Sample implementation in ext2: ext2_rmdir (http://goo.gl/B9QmFf)
type RmDirOp struct { type RmDirOp struct {
commonOp
// The ID of parent directory inode, and the name of the directory being // The ID of parent directory inode, and the name of the directory being
// removed within it. // removed within it.
Parent InodeID Parent InodeID
@ -346,8 +320,6 @@ type RmDirOp struct {
// //
// Sample implementation in ext2: ext2_unlink (http://goo.gl/hY6r6C) // Sample implementation in ext2: ext2_unlink (http://goo.gl/hY6r6C)
type UnlinkOp struct { type UnlinkOp struct {
commonOp
// The ID of parent directory inode, and the name of the entry being removed // The ID of parent directory inode, and the name of the entry being removed
// within it. // within it.
Parent InodeID Parent InodeID
@ -365,8 +337,6 @@ type UnlinkOp struct {
// user-space process. On OS X it may not be sent for every open(2) (cf. // user-space process. On OS X it may not be sent for every open(2) (cf.
// https://github.com/osxfuse/osxfuse/issues/199). // https://github.com/osxfuse/osxfuse/issues/199).
type OpenDirOp struct { type OpenDirOp struct {
commonOp
// The ID of the inode to be opened. // The ID of the inode to be opened.
Inode InodeID Inode InodeID
@ -383,8 +353,6 @@ type OpenDirOp struct {
// Read entries from a directory previously opened with OpenDir. // Read entries from a directory previously opened with OpenDir.
type ReadDirOp struct { type ReadDirOp struct {
commonOp
// The directory inode that we are reading, and the handle previously // The directory inode that we are reading, and the handle previously
// returned by OpenDir when opening that inode. // returned by OpenDir when opening that inode.
Inode InodeID Inode InodeID
@ -480,8 +448,6 @@ type ReadDirOp struct {
// //
// Errors from this op are ignored by the kernel (cf. http://goo.gl/RL38Do). // Errors from this op are ignored by the kernel (cf. http://goo.gl/RL38Do).
type ReleaseDirHandleOp struct { type ReleaseDirHandleOp struct {
commonOp
// The handle ID to be released. The kernel guarantees that this ID will not // The handle ID to be released. The kernel guarantees that this ID will not
// be used in further calls to the file system (unless it is reissued by the // be used in further calls to the file system (unless it is reissued by the
// file system). // file system).
@ -499,8 +465,6 @@ type ReleaseDirHandleOp struct {
// process. On OS X it may not be sent for every open(2) // process. On OS X it may not be sent for every open(2)
// (cf.https://github.com/osxfuse/osxfuse/issues/199). // (cf.https://github.com/osxfuse/osxfuse/issues/199).
type OpenFileOp struct { type OpenFileOp struct {
commonOp
// The ID of the inode to be opened. // The ID of the inode to be opened.
Inode InodeID Inode InodeID
@ -520,8 +484,6 @@ type OpenFileOp struct {
// some reads may be served by the page cache. See notes on WriteFileOp for // some reads may be served by the page cache. See notes on WriteFileOp for
// more. // more.
type ReadFileOp struct { type ReadFileOp struct {
commonOp
// The file inode that we are reading, and the handle previously returned by // The file inode that we are reading, and the handle previously returned by
// CreateFile or OpenFile when opening that inode. // CreateFile or OpenFile when opening that inode.
Inode InodeID Inode InodeID
@ -575,8 +537,6 @@ type ReadFileOp struct {
// (See also http://goo.gl/ocdTdM, fuse-devel thread "Fuse guarantees on // (See also http://goo.gl/ocdTdM, fuse-devel thread "Fuse guarantees on
// concurrent requests".) // concurrent requests".)
type WriteFileOp struct { type WriteFileOp struct {
commonOp
// The file inode that we are modifying, and the handle previously returned // The file inode that we are modifying, and the handle previously returned
// by CreateFile or OpenFile when opening that inode. // by CreateFile or OpenFile when opening that inode.
Inode InodeID Inode InodeID
@ -630,8 +590,6 @@ type WriteFileOp struct {
// See also: FlushFileOp, which may perform a similar function when closing a // See also: FlushFileOp, which may perform a similar function when closing a
// file (but which is not used in "real" file systems). // file (but which is not used in "real" file systems).
type SyncFileOp struct { type SyncFileOp struct {
commonOp
// The file and handle being sync'd. // The file and handle being sync'd.
Inode InodeID Inode InodeID
Handle HandleID Handle HandleID
@ -685,8 +643,6 @@ type SyncFileOp struct {
// to at least schedule a real flush, and maybe do it immediately in order to // to at least schedule a real flush, and maybe do it immediately in order to
// return any errors that occur. // return any errors that occur.
type FlushFileOp struct { type FlushFileOp struct {
commonOp
// The file and handle being flushed. // The file and handle being flushed.
Inode InodeID Inode InodeID
Handle HandleID Handle HandleID
@ -701,35 +657,18 @@ type FlushFileOp struct {
// //
// Errors from this op are ignored by the kernel (cf. http://goo.gl/RL38Do). // Errors from this op are ignored by the kernel (cf. http://goo.gl/RL38Do).
type ReleaseFileHandleOp struct { type ReleaseFileHandleOp struct {
commonOp
// The handle ID to be released. The kernel guarantees that this ID will not // The handle ID to be released. The kernel guarantees that this ID will not
// be used in further calls to the file system (unless it is reissued by the // be used in further calls to the file system (unless it is reissued by the
// file system). // file system).
Handle HandleID Handle HandleID
} }
// A sentinel used for unknown ops. The user is expected to respond with a
// non-nil error.
type unknownOp struct {
commonOp
opCode uint32
inode InodeID
}
func (o *unknownOp) ShortDesc() (desc string) {
desc = fmt.Sprintf("<opcode %d>(inode=%v)", o.opCode, o.inode)
return
}
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
// Reading symlinks // Reading symlinks
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
// Read the target of a symlink inode. // Read the target of a symlink inode.
type ReadSymlinkOp struct { type ReadSymlinkOp struct {
commonOp
// The symlink inode that we are reading. // The symlink inode that we are reading.
Inode InodeID Inode InodeID