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
1b73d273
Commit
1b73d273
authored
Sep 21, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug for Flush.
parent
f72abcb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
fuse/opcode.go
fuse/opcode.go
+1
-0
fuse/typeprint.go
fuse/typeprint.go
+6
-2
No files found.
fuse/opcode.go
View file @
1b73d273
...
@@ -494,6 +494,7 @@ func init() {
...
@@ -494,6 +494,7 @@ func init() {
// Inputs.
// Inputs.
for
op
,
f
:=
range
map
[
opcode
]
castPointerFunc
{
for
op
,
f
:=
range
map
[
opcode
]
castPointerFunc
{
_OP_FLUSH
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
FlushIn
)(
ptr
)
},
_OP_GETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
GetAttrIn
)(
ptr
)
},
_OP_GETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
GetAttrIn
)(
ptr
)
},
_OP_SETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
SetAttrIn
)(
ptr
)
},
_OP_SETATTR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
SetAttrIn
)(
ptr
)
},
_OP_INIT
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
InitIn
)(
ptr
)
},
_OP_INIT
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
InitIn
)(
ptr
)
},
...
...
fuse/typeprint.go
View file @
1b73d273
...
@@ -128,7 +128,7 @@ func (me *Attr) String() string {
...
@@ -128,7 +128,7 @@ func (me *Attr) String() string {
func
(
me
*
CreateIn
)
String
()
string
{
func
(
me
*
CreateIn
)
String
()
string
{
return
fmt
.
Sprintf
(
return
fmt
.
Sprintf
(
"{0%o [%s] (0%o)}"
,
me
.
Flags
,
"{0%o [%s] (0%o)}"
,
me
.
Mode
,
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
"O_RDONLY"
),
me
.
Umask
)
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
"O_RDONLY"
),
me
.
Umask
)
}
}
...
@@ -174,8 +174,12 @@ func (me *MknodIn) String() string {
...
@@ -174,8 +174,12 @@ func (me *MknodIn) String() string {
}
}
func
(
me
*
ReleaseIn
)
String
()
string
{
func
(
me
*
ReleaseIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d %s %s %d}"
,
return
fmt
.
Sprintf
(
"{Fh %d %s %s
L
%d}"
,
me
.
Fh
,
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
""
),
me
.
Fh
,
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
""
),
flagString
(
releaseFlagNames
,
int
(
me
.
ReleaseFlags
),
""
),
flagString
(
releaseFlagNames
,
int
(
me
.
ReleaseFlags
),
""
),
me
.
LockOwner
)
me
.
LockOwner
)
}
}
func
(
me
*
FlushIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d}"
,
me
.
Fh
)
}
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