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
884812f5
Commit
884812f5
authored
Jul 06, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gofmt.
parent
e0de488a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
94 deletions
+93
-94
fuse/api.go
fuse/api.go
+2
-2
fuse/delete_test.go
fuse/delete_test.go
+5
-5
fuse/mountstate.go
fuse/mountstate.go
+1
-1
fuse/opcode.go
fuse/opcode.go
+75
-75
raw/types.go
raw/types.go
+10
-11
No files found.
fuse/api.go
View file @
884812f5
fuse/delete_test.go
View file @
884812f5
...
...
@@ -26,7 +26,7 @@ func (f *flipNode) GetAttr(out *Attr, file File, c *Context) Status {
}
func
TestDeleteNotify
(
t
*
testing
.
T
)
{
dir
,
err
:=
ioutil
.
TempDir
(
""
,
""
)
dir
,
err
:=
ioutil
.
TempDir
(
""
,
""
)
if
err
!=
nil
{
t
.
Fatalf
(
"TempDir failed %v"
,
err
)
}
...
...
@@ -62,7 +62,7 @@ func TestDeleteNotify(t *testing.T) {
newCh
:=
fs
.
Root
()
.
Inode
()
.
New
(
true
,
&
flip
)
fs
.
Root
()
.
Inode
()
.
AddChild
(
"testdir"
,
newCh
)
err
=
ioutil
.
WriteFile
(
mnt
+
"/testdir/testfile"
,
[]
byte
{
42
},
0644
)
err
=
ioutil
.
WriteFile
(
mnt
+
"/testdir/testfile"
,
[]
byte
{
42
},
0644
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -85,11 +85,11 @@ func TestDeleteNotify(t *testing.T) {
defer
func
()
{
cmd
.
Process
.
Kill
()
time
.
Sleep
(
100
*
time
.
Millisecond
)
time
.
Sleep
(
100
*
time
.
Millisecond
)
}()
// Wait until tail opened the file.
time
.
Sleep
(
100
*
time
.
Millisecond
)
time
.
Sleep
(
100
*
time
.
Millisecond
)
err
=
os
.
Remove
(
mnt
+
"/testdir/testfile"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
fuse/mountstate.go
View file @
884812f5
fuse/opcode.go
View file @
884812f5
raw/types.go
View file @
884812f5
...
...
@@ -298,12 +298,11 @@ type NotifyInvalEntryOut struct {
Padding
uint32
}
type
NotifyInvalDeleteOut
struct
{
Parent
uint64
;
Child
uint64
;
NameLen
uint32
;
Padding
uint32
;
Parent
uint64
Child
uint64
NameLen
uint32
Padding
uint32
}
const
(
...
...
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