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
Levin Zimmermann
go-fuse
Commits
073e2885
Commit
073e2885
authored
Oct 04, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
97a174d5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fuse/nodefs/fsconnector.go
fuse/nodefs/fsconnector.go
+2
-2
fuse/nodefs/memnode.go
fuse/nodefs/memnode.go
+1
-1
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+1
-1
No files found.
fuse/nodefs/fsconnector.go
View file @
073e2885
...
@@ -348,7 +348,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
...
@@ -348,7 +348,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
// This operation is rare, so we kludge it to avoid
// This operation is rare, so we kludge it to avoid
// contention.
// contention.
time
.
Sleep
(
delay
)
time
.
Sleep
(
delay
)
delay
=
delay
*
2
delay
=
delay
*
2
if
!
c
.
inodeMap
.
Has
(
nodeId
)
{
if
!
c
.
inodeMap
.
Has
(
nodeId
)
{
break
break
}
}
...
...
fuse/nodefs/memnode.go
View file @
073e2885
...
@@ -92,7 +92,7 @@ func (n *memNode) Readlink(c *fuse.Context) ([]byte, fuse.Status) {
...
@@ -92,7 +92,7 @@ func (n *memNode) Readlink(c *fuse.Context) ([]byte, fuse.Status) {
return
[]
byte
(
n
.
link
),
fuse
.
OK
return
[]
byte
(
n
.
link
),
fuse
.
OK
}
}
func
(
n
*
memNode
)
StatFs
()
(
*
fuse
.
StatfsOut
)
{
func
(
n
*
memNode
)
StatFs
()
*
fuse
.
StatfsOut
{
return
&
fuse
.
StatfsOut
{}
return
&
fuse
.
StatfsOut
{}
}
}
...
...
unionfs/unionfs_test.go
View file @
073e2885
...
@@ -1506,7 +1506,7 @@ func TestUnionFSBarf(t *testing.T) {
...
@@ -1506,7 +1506,7 @@ func TestUnionFSBarf(t *testing.T) {
if
err
:=
ioutil
.
WriteFile
(
wd
+
"/rw/dir/file"
,
[]
byte
(
"bla"
),
0644
);
err
!=
nil
{
if
err
:=
ioutil
.
WriteFile
(
wd
+
"/rw/dir/file"
,
[]
byte
(
"bla"
),
0644
);
err
!=
nil
{
t
.
Fatalf
(
"WriteFile failed: %v"
,
err
)
t
.
Fatalf
(
"WriteFile failed: %v"
,
err
)
}
}
if
_
,
err
:=
os
.
Lstat
(
wd
+
"/mnt/dir/file"
);
err
!=
nil
{
if
_
,
err
:=
os
.
Lstat
(
wd
+
"/mnt/dir/file"
);
err
!=
nil
{
t
.
Fatalf
(
"Lstat: %v"
,
err
)
t
.
Fatalf
(
"Lstat: %v"
,
err
)
}
}
if
err
:=
os
.
Rename
(
wd
+
"/rw/dir/file"
,
wd
+
"/rw/file"
);
err
!=
nil
{
if
err
:=
os
.
Rename
(
wd
+
"/rw/dir/file"
,
wd
+
"/rw/file"
);
err
!=
nil
{
...
...
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