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
5203b828
Commit
5203b828
authored
Mar 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ported two more methods.
parent
39c6e2e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
38 deletions
+30
-38
fuseops/ops.go
fuseops/ops.go
+30
-38
No files found.
fuseops/ops.go
View file @
5203b828
...
...
@@ -57,11 +57,21 @@ type LookUpInodeOp struct {
Entry
ChildInodeEntry
}
// Refresh the attributes for an inode whose ID was previously returned
by
// LookUpInode
. The kernel sends this when the FUSE VFS layer's cache of inode
//
attributes is stale. This is controlled by the AttributesExpiration field of
//
responses to LookUp
, etc.
// Refresh the attributes for an inode whose ID was previously returned
in a
// LookUpInode
Op. The kernel sends this when the FUSE VFS layer's cache of
//
inode attributes is stale. This is controlled by the AttributesExpiration
//
field of ChildInodeEntry
, etc.
type
GetInodeAttributesOp
struct
{
Header
RequestHeader
// The inode of interest.
Inode
InodeID
// Set by the file system: attributes for the inode, and the time at which
// they should expire. See notes on ChildInodeEntry.AttributesExpiration for
// more.
Attributes
InodeAttributes
AttributesExpiration
time
.
Time
}
// Change attributes for an inode.
...
...
@@ -69,6 +79,22 @@ type GetInodeAttributesOp struct {
// The kernel sends this for obvious cases like chmod(2), and for less obvious
// cases like ftrunctate(2).
type
SetInodeAttributesOp
struct
{
Header
RequestHeader
// The inode of interest.
Inode
InodeID
// The attributes to modify, or nil for attributes that don't need a change.
Size
*
uint64
Mode
*
os
.
FileMode
Atime
*
time
.
Time
Mtime
*
time
.
Time
// Set by the file system: the new attributes for the inode, and the time at
// which they should expire. See notes on
// ChildInodeEntry.AttributesExpiration for more.
Attributes
InodeAttributes
AttributesExpiration
time
.
Time
}
// Forget an inode ID previously issued (e.g. by LookUpInode or MkDir). The
...
...
@@ -288,40 +314,6 @@ type ReleaseFileHandleOp struct {
// Requests and responses
////////////////////////////////////////////////////////////////////////
type
GetInodeAttributesRequest
struct
{
Header
RequestHeader
// The inode of interest.
Inode
InodeID
}
type
GetInodeAttributesResponse
struct
{
// Attributes for the inode, and the time at which they should expire. See
// notes on ChildInodeEntry.AttributesExpiration for more.
Attributes
InodeAttributes
AttributesExpiration
time
.
Time
}
type
SetInodeAttributesRequest
struct
{
Header
RequestHeader
// The inode of interest.
Inode
InodeID
// The attributes to modify, or nil for attributes that don't need a change.
Size
*
uint64
Mode
*
os
.
FileMode
Atime
*
time
.
Time
Mtime
*
time
.
Time
}
type
SetInodeAttributesResponse
struct
{
// The new attributes for the inode, and the time at which they should
// expire. See notes on ChildInodeEntry.AttributesExpiration for more.
Attributes
InodeAttributes
AttributesExpiration
time
.
Time
}
type
ForgetInodeRequest
struct
{
Header
RequestHeader
...
...
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