Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
Kirill Smelkov
jacobsa-fuse
Commits
2366f698
Commit
2366f698
authored
Jul 22, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added bfReq members.
parent
aff2fc2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
fuseops/ops.go
fuseops/ops.go
+20
-0
No files found.
fuseops/ops.go
View file @
2366f698
...
@@ -61,6 +61,7 @@ type Op interface {
...
@@ -61,6 +61,7 @@ type Op interface {
// 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
commonOp
bfReq
*
bazilfuse
.
LookupRequest
// 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
...
@@ -103,6 +104,7 @@ func (o *LookUpInodeOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -103,6 +104,7 @@ func (o *LookUpInodeOp) toBazilfuseResponse() (bfResp interface{}) {
// field of ChildInodeEntry, etc.
// field of ChildInodeEntry, etc.
type
GetInodeAttributesOp
struct
{
type
GetInodeAttributesOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
GetattrRequest
// The inode of interest.
// The inode of interest.
Inode
InodeID
Inode
InodeID
...
@@ -129,6 +131,7 @@ func (o *GetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -129,6 +131,7 @@ func (o *GetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
// cases like ftrunctate(2).
// cases like ftrunctate(2).
type
SetInodeAttributesOp
struct
{
type
SetInodeAttributesOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
SetattrRequest
// The inode of interest.
// The inode of interest.
Inode
InodeID
Inode
InodeID
...
@@ -196,6 +199,7 @@ func (o *SetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -196,6 +199,7 @@ func (o *SetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
// implicitly decrementing all lookup counts to zero.
// implicitly decrementing all lookup counts to zero.
type
ForgetInodeOp
struct
{
type
ForgetInodeOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
ForgetRequest
// The inode whose reference count should be decremented.
// The inode whose reference count should be decremented.
Inode
InodeID
Inode
InodeID
...
@@ -225,6 +229,7 @@ func (o *ForgetInodeOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -225,6 +229,7 @@ func (o *ForgetInodeOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
MkdirRequest
// 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
...
@@ -266,6 +271,7 @@ func (o *MkDirOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -266,6 +271,7 @@ func (o *MkDirOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
CreateRequest
// 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
...
@@ -316,6 +322,7 @@ func (o *CreateFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -316,6 +322,7 @@ func (o *CreateFileOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
SymlinkRequest
// 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
...
@@ -394,6 +401,7 @@ func (o *CreateSymlinkOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -394,6 +401,7 @@ func (o *CreateSymlinkOp) toBazilfuseResponse() (bfResp interface{}) {
//
//
type
RenameOp
struct
{
type
RenameOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
RenameRequest
// 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.
...
@@ -419,6 +427,7 @@ func (o *RenameOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -419,6 +427,7 @@ func (o *RenameOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
RemoveRequest
// 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.
...
@@ -438,6 +447,7 @@ func (o *RmDirOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -438,6 +447,7 @@ func (o *RmDirOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
RemoveRequest
// 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.
...
@@ -461,6 +471,7 @@ func (o *UnlinkOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -461,6 +471,7 @@ func (o *UnlinkOp) toBazilfuseResponse() (bfResp interface{}) {
// https://github.com/osxfuse/osxfuse/issues/199).
// https://github.com/osxfuse/osxfuse/issues/199).
type
OpenDirOp
struct
{
type
OpenDirOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
OpenRequest
// The ID of the inode to be opened.
// The ID of the inode to be opened.
Inode
InodeID
Inode
InodeID
...
@@ -491,6 +502,7 @@ func (o *OpenDirOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -491,6 +502,7 @@ func (o *OpenDirOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
ReadRequest
// 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.
...
@@ -597,6 +609,7 @@ func (o *ReadDirOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -597,6 +609,7 @@ func (o *ReadDirOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
ReleaseRequest
// 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
...
@@ -620,6 +633,7 @@ func (o *ReleaseDirHandleOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -620,6 +633,7 @@ func (o *ReleaseDirHandleOp) toBazilfuseResponse() (bfResp interface{}) {
// (cf.https://github.com/osxfuse/osxfuse/issues/199).
// (cf.https://github.com/osxfuse/osxfuse/issues/199).
type
OpenFileOp
struct
{
type
OpenFileOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
OpenRequest
// The ID of the inode to be opened.
// The ID of the inode to be opened.
Inode
InodeID
Inode
InodeID
...
@@ -653,6 +667,7 @@ func (o *OpenFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -653,6 +667,7 @@ func (o *OpenFileOp) toBazilfuseResponse() (bfResp interface{}) {
// more.
// more.
type
ReadFileOp
struct
{
type
ReadFileOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
ReadRequest
bfResp
bazilfuse
.
ReadResponse
bfResp
bazilfuse
.
ReadResponse
// 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
...
@@ -715,6 +730,7 @@ func (o *ReadFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -715,6 +730,7 @@ func (o *ReadFileOp) toBazilfuseResponse() (bfResp interface{}) {
// concurrent requests".)
// concurrent requests".)
type
WriteFileOp
struct
{
type
WriteFileOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
WriteRequest
// 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.
...
@@ -779,6 +795,7 @@ func (o *WriteFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -779,6 +795,7 @@ func (o *WriteFileOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
FsyncRequest
// The file and handle being sync'd.
// The file and handle being sync'd.
Inode
InodeID
Inode
InodeID
...
@@ -838,6 +855,7 @@ func (o *SyncFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -838,6 +855,7 @@ func (o *SyncFileOp) toBazilfuseResponse() (bfResp interface{}) {
// return any errors that occur.
// return any errors that occur.
type
FlushFileOp
struct
{
type
FlushFileOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
FlushRequest
// The file and handle being flushed.
// The file and handle being flushed.
Inode
InodeID
Inode
InodeID
...
@@ -858,6 +876,7 @@ func (o *FlushFileOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -858,6 +876,7 @@ func (o *FlushFileOp) toBazilfuseResponse() (bfResp interface{}) {
// 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
commonOp
bfReq
*
bazilfuse
.
ReleaseRequest
// 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
...
@@ -891,6 +910,7 @@ func (o *unknownOp) toBazilfuseResponse() (bfResp interface{}) {
...
@@ -891,6 +910,7 @@ func (o *unknownOp) toBazilfuseResponse() (bfResp interface{}) {
// Read the target of a symlink inode.
// Read the target of a symlink inode.
type
ReadSymlinkOp
struct
{
type
ReadSymlinkOp
struct
{
commonOp
commonOp
bfReq
*
bazilfuse
.
ReadlinkRequest
// The symlink inode that we are reading.
// The symlink inode that we are reading.
Inode
InodeID
Inode
InodeID
...
...
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