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
c08fcaa9
Commit
c08fcaa9
authored
Mar 29, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move notify constants.
parent
2b37e448
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
fuse/mountstate.go
fuse/mountstate.go
+2
-2
fuse/types.go
fuse/types.go
+0
-8
raw/types.go
raw/types.go
+7
-0
No files found.
fuse/mountstate.go
View file @
c08fcaa9
...
@@ -285,7 +285,7 @@ func (me *MountState) writeInodeNotify(entry *raw.NotifyInvalInodeOut) Status {
...
@@ -285,7 +285,7 @@ func (me *MountState) writeInodeNotify(entry *raw.NotifyInvalInodeOut) Status {
opcode
:
_OP_NOTIFY_INODE
,
opcode
:
_OP_NOTIFY_INODE
,
},
},
handler
:
operationHandlers
[
_OP_NOTIFY_INODE
],
handler
:
operationHandlers
[
_OP_NOTIFY_INODE
],
status
:
NOTIFY_INVAL_INODE
,
status
:
raw
.
NOTIFY_INVAL_INODE
,
}
}
req
.
outData
=
unsafe
.
Pointer
(
entry
)
req
.
outData
=
unsafe
.
Pointer
(
entry
)
req
.
serialize
()
req
.
serialize
()
...
@@ -303,7 +303,7 @@ func (me *MountState) writeEntryNotify(parent uint64, name string) Status {
...
@@ -303,7 +303,7 @@ func (me *MountState) writeEntryNotify(parent uint64, name string) Status {
opcode
:
_OP_NOTIFY_ENTRY
,
opcode
:
_OP_NOTIFY_ENTRY
,
},
},
handler
:
operationHandlers
[
_OP_NOTIFY_ENTRY
],
handler
:
operationHandlers
[
_OP_NOTIFY_ENTRY
],
status
:
NOTIFY_INVAL_ENTRY
,
status
:
raw
.
NOTIFY_INVAL_ENTRY
,
}
}
entry
:=
&
raw
.
NotifyInvalEntryOut
{
entry
:=
&
raw
.
NotifyInvalEntryOut
{
Parent
:
parent
,
Parent
:
parent
,
...
...
fuse/types.go
View file @
c08fcaa9
...
@@ -57,14 +57,6 @@ const (
...
@@ -57,14 +57,6 @@ const (
EROFS
=
Status
(
syscall
.
EROFS
)
EROFS
=
Status
(
syscall
.
EROFS
)
)
)
type
NotifyCode
int
const
(
NOTIFY_POLL
=
-
1
NOTIFY_INVAL_INODE
=
-
2
NOTIFY_INVAL_ENTRY
=
-
3
NOTIFY_CODE_MAX
=
-
4
)
type
Attr
struct
{
type
Attr
struct
{
Ino
uint64
Ino
uint64
...
...
raw/types.go
View file @
c08fcaa9
...
@@ -296,3 +296,10 @@ type NotifyInvalEntryOut struct {
...
@@ -296,3 +296,10 @@ type NotifyInvalEntryOut struct {
NameLen
uint32
NameLen
uint32
Padding
uint32
Padding
uint32
}
}
const
(
NOTIFY_POLL
=
-
1
NOTIFY_INVAL_INODE
=
-
2
NOTIFY_INVAL_ENTRY
=
-
3
NOTIFY_CODE_MAX
=
-
4
)
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