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
24dceee8
Commit
24dceee8
authored
Sep 17, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release print debug.
parent
ab0b2f5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
fuse/typeprint.go
fuse/typeprint.go
+11
-2
fuse/types.go
fuse/types.go
+3
-2
No files found.
fuse/typeprint.go
View file @
24dceee8
...
...
@@ -12,8 +12,12 @@ var initFlagNames map[int]string
var
fuseOpenFlagNames
map
[
int
]
string
var
writeFlagNames
map
[
int
]
string
var
readFlagNames
map
[
int
]
string
var
releaseFlagNames
map
[
int
]
string
func
init
()
{
releaseFlagNames
=
map
[
int
]
string
{
RELEASE_FLUSH
:
"FLUSH"
,
}
openFlagNames
=
map
[
int
]
string
{
os
.
O_WRONLY
:
"WRONLY"
,
os
.
O_RDWR
:
"RDWR"
,
...
...
@@ -128,6 +132,10 @@ func (me *CreateIn) String() string {
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
"O_RDONLY"
),
me
.
Umask
)
}
func
(
me
*
CreateOut
)
String
()
string
{
return
fmt
.
Sprintf
(
"{%v %v}"
,
&
me
.
EntryOut
,
&
me
.
OpenOut
)
}
func
(
me
*
OpenOut
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d %s}"
,
me
.
Fh
,
flagString
(
fuseOpenFlagNames
,
int
(
me
.
OpenFlags
),
""
))
...
...
@@ -162,7 +170,8 @@ func (me *MkdirIn) String() string {
}
func
(
me
*
ReleaseIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d %s 0x%x %d}"
,
me
.
Fh
,
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
""
),
me
.
ReleaseFlags
,
return
fmt
.
Sprintf
(
"{Fh %d %s %s %d}"
,
me
.
Fh
,
flagString
(
openFlagNames
,
int
(
me
.
Flags
),
""
),
flagString
(
releaseFlagNames
,
int
(
me
.
ReleaseFlags
),
""
),
me
.
LockOwner
)
}
fuse/types.go
View file @
24dceee8
...
...
@@ -12,8 +12,6 @@ const (
CUSE_UNRESTRICTED_IOCTL
=
(
1
<<
0
)
FUSE_RELEASE_FLUSH
=
(
1
<<
0
)
FUSE_LK_FLOCK
=
(
1
<<
0
)
FUSE_IOCTL_MAX_IOV
=
256
...
...
@@ -226,6 +224,9 @@ type CreateOut struct {
OpenOut
}
const
RELEASE_FLUSH
=
(
1
<<
0
)
type
ReleaseIn
struct
{
Fh
uint64
Flags
uint32
...
...
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