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
9b930cd8
Commit
9b930cd8
authored
Mar 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated dirent.go.
parent
c880ea68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fuseutil/dirent.go
fuseutil/dirent.go
+6
-6
No files found.
fuseutil/dirent.go
View file @
9b930cd8
...
...
@@ -18,7 +18,7 @@ import (
"syscall"
"unsafe"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse
/fuseops
"
)
type
DirentType
uint32
...
...
@@ -35,14 +35,14 @@ const (
)
// A struct representing an entry within a directory file, describing a child.
// See notes on fuse
.ReadDirResponse
and on AppendDirent for details.
// See notes on fuse
ops.ReadDirOp
and on AppendDirent for details.
type
Dirent
struct
{
// The (opaque) offset within the directory file of the entry following this
// one. See notes on fuse
.ReadDirRequest
.Offset for details.
Offset
fuse
.
DirOffset
// one. See notes on fuse
ops.ReadDirOp
.Offset for details.
Offset
fuse
ops
.
DirOffset
// The inode of the child file or directory, and its name within the parent.
Inode
fuse
.
InodeID
Inode
fuse
ops
.
InodeID
Name
string
// The type of the child. The zero value (DT_Unknown) is legal, but means
...
...
@@ -51,7 +51,7 @@ type Dirent struct {
}
// Append the supplied directory entry to the given buffer in the format
// expected in fuse
.ReadResponse
.Data, returning the resulting buffer.
// expected in fuse
ops.ReadFileOp
.Data, returning the resulting buffer.
func
AppendDirent
(
input
[]
byte
,
d
Dirent
)
(
output
[]
byte
)
{
// We want to append bytes with the layout of fuse_dirent
// (http://goo.gl/BmFxob) in host order. The struct must be aligned according
...
...
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