Added hellofs support for nlink.
parent
08b7f22d0a
commit
7e8f3266ef
|
@ -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{
|
||||||
// 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{
|
||||||
// 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!")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue