Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-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
go-fuse
Commits
92a4cb63
Commit
92a4cb63
authored
Apr 22, 2015
by
Frederick Akalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect use of generation in FileSystemConnector
parent
c4a6d9fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
fuse/nodefs/fsconnector.go
fuse/nodefs/fsconnector.go
+0
-12
fuse/nodefs/inode.go
fuse/nodefs/inode.go
+0
-1
No files found.
fuse/nodefs/fsconnector.go
View file @
92a4cb63
...
...
@@ -8,7 +8,6 @@ import (
"log"
"path/filepath"
"strings"
"sync/atomic"
"time"
"unsafe"
...
...
@@ -22,10 +21,6 @@ var paranoia = false
// structs of uint32/uint64) to operations on Go objects representing
// files and directories.
type
FileSystemConnector
struct
{
// Used as the generation inodes. This must be 64-bit aligned,
// for sync/atomic on i386 to work properly.
generation
uint64
debug
bool
// Callbacks for talking back to the kernel.
...
...
@@ -59,9 +54,6 @@ func NewFileSystemConnector(root Node, opts *Options) (c *FileSystemConnector) {
c
.
inodeMap
=
newPortableHandleMap
()
c
.
rootNode
=
newInode
(
true
,
root
)
// Make sure we don't reuse generation numbers.
c
.
generation
=
uint64
(
time
.
Now
()
.
UnixNano
())
c
.
verify
()
c
.
mountRoot
(
opts
)
...
...
@@ -82,10 +74,6 @@ func (c *FileSystemConnector) SetDebug(debug bool) {
c
.
debug
=
debug
}
func
(
c
*
FileSystemConnector
)
nextGeneration
()
uint64
{
return
atomic
.
AddUint64
(
&
c
.
generation
,
1
)
}
// This verifies invariants of the data structure. This routine
// acquires tree locks as it walks the inode tree.
func
(
c
*
FileSystemConnector
)
verify
()
{
...
...
fuse/nodefs/inode.go
View file @
92a4cb63
...
...
@@ -117,7 +117,6 @@ func (n *Inode) IsDir() bool {
func
(
n
*
Inode
)
NewChild
(
name
string
,
isDir
bool
,
fsi
Node
)
*
Inode
{
ch
:=
newInode
(
isDir
,
fsi
)
ch
.
mount
=
n
.
mount
n
.
generation
=
ch
.
mount
.
connector
.
nextGeneration
()
n
.
AddChild
(
name
,
ch
)
return
ch
}
...
...
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