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
7e8f3266
Commit
7e8f3266
authored
Mar 18, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added hellofs support for nlink.
parent
08b7f22d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
samples/hellofs/hello_fs.go
samples/hellofs/hello_fs.go
+10
-6
No files found.
samples/hellofs/hello_fs.go
View file @
7e8f3266
...
@@ -61,7 +61,8 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
...
@@ -61,7 +61,8 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
// root
// root
rootInode
:
inodeInfo
{
rootInode
:
inodeInfo
{
attributes
:
fuse
.
InodeAttributes
{
attributes
:
fuse
.
InodeAttributes
{
Mode
:
0555
|
os
.
ModeDir
,
Nlink
:
1
,
Mode
:
0555
|
os
.
ModeDir
,
},
},
dir
:
true
,
dir
:
true
,
children
:
[]
fuseutil
.
Dirent
{
children
:
[]
fuseutil
.
Dirent
{
...
@@ -83,15 +84,17 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
...
@@ -83,15 +84,17 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
// hello
// hello
helloInode
:
inodeInfo
{
helloInode
:
inodeInfo
{
attributes
:
fuse
.
InodeAttributes
{
attributes
:
fuse
.
InodeAttributes
{
Mode
:
0444
,
Nlink
:
1
,
Size
:
uint64
(
len
(
"Hello, world!"
)),
Mode
:
0444
,
Size
:
uint64
(
len
(
"Hello, world!"
)),
},
},
},
},
// dir
// dir
dirInode
:
inodeInfo
{
dirInode
:
inodeInfo
{
attributes
:
fuse
.
InodeAttributes
{
attributes
:
fuse
.
InodeAttributes
{
Mode
:
0555
|
os
.
ModeDir
,
Nlink
:
1
,
Mode
:
0555
|
os
.
ModeDir
,
},
},
dir
:
true
,
dir
:
true
,
children
:
[]
fuseutil
.
Dirent
{
children
:
[]
fuseutil
.
Dirent
{
...
@@ -107,8 +110,9 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
...
@@ -107,8 +110,9 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
// world
// world
worldInode
:
inodeInfo
{
worldInode
:
inodeInfo
{
attributes
:
fuse
.
InodeAttributes
{
attributes
:
fuse
.
InodeAttributes
{
Mode
:
0444
,
Nlink
:
1
,
Size
:
uint64
(
len
(
"Hello, world!"
)),
Mode
:
0444
,
Size
:
uint64
(
len
(
"Hello, world!"
)),
},
},
},
},
}
}
...
...
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