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
fd9dbe87
Commit
fd9dbe87
authored
Mar 04, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored ChildInodeEntry comments.
parent
efe4481b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
file_system.go
file_system.go
+12
-20
No files found.
file_system.go
View file @
fd9dbe87
...
@@ -257,8 +257,8 @@ type RequestHeader struct {
...
@@ -257,8 +257,8 @@ type RequestHeader struct {
}
}
// Information about a child inode within its parent directory. Shared by the
// Information about a child inode within its parent directory. Shared by the
// responses for LookUpInode, MkDir,
etc. Consumed by the kernel in order to
// responses for LookUpInode, MkDir,
CreateFile, etc. Consumed by the kernel in
// set up a dcache entry.
//
order to
set up a dcache entry.
type
ChildInodeEntry
struct
{
type
ChildInodeEntry
struct
{
// The ID of the child inode. The file system must ensure that the returned
// The ID of the child inode. The file system must ensure that the returned
// inode ID remains valid until a later call to ForgetInode.
// inode ID remains valid until a later call to ForgetInode.
...
@@ -269,6 +269,16 @@ type ChildInodeEntry struct {
...
@@ -269,6 +269,16 @@ type ChildInodeEntry struct {
Generation
GenerationNumber
Generation
GenerationNumber
// Current attributes for the child inode.
// Current attributes for the child inode.
//
// When creating a new inode, the file system is responsible for initializing
// and recording (where supported) attributes like time information,
// ownership information, etc.
//
// Ownership information in particular must be set to something reasonable or
// by default root will own everything and unprivileged users won't be able
// to do anything useful. In traditional file systems in the kernel, the
// function inode_init_owner (http://goo.gl/5qavg8) contains the
// standards-compliant logic for this.
Attributes
InodeAttributes
Attributes
InodeAttributes
// The FUSE VFS layer in the kernel maintains a cache of file attributes,
// The FUSE VFS layer in the kernel maintains a cache of file attributes,
...
@@ -399,15 +409,6 @@ type MkDirRequest struct {
...
@@ -399,15 +409,6 @@ type MkDirRequest struct {
type
MkDirResponse
struct
{
type
MkDirResponse
struct
{
// Information about the inode that was created.
// Information about the inode that was created.
//
// The file system is responsible for initializing and recording (where
// supported) attributes like time information, ownership information, etc.
//
// Ownership information in particular must be set to something reasonable or
// by default root will own everything and unprivileged users won't be able
// to do anything useful. In traditional file systems in the kernel, the
// function inode_init_owner (http://goo.gl/5qavg8) contains the
// standards-compliant logic for this.
Entry
ChildInodeEntry
Entry
ChildInodeEntry
}
}
...
@@ -427,15 +428,6 @@ type CreateFileRequest struct {
...
@@ -427,15 +428,6 @@ type CreateFileRequest struct {
type
CreateFileResponse
struct
{
type
CreateFileResponse
struct
{
// Information about the inode that was created.
// Information about the inode that was created.
//
// The file system is responsible for initializing and recording (where
// supported) attributes like time information, ownership information, etc.
//
// Ownership information in particular must be set to something reasonable or
// by default root will own everything and unprivileged users won't be able
// to do anything useful. In traditional file systems in the kernel, the
// function inode_init_owner (http://goo.gl/5qavg8) contains the
// standards-compliant logic for this.
Entry
ChildInodeEntry
Entry
ChildInodeEntry
// An opaque ID that will be echoed in follow-up calls for this file using
// An opaque ID that will be echoed in follow-up calls for this file using
...
...
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