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
55aa1802
Commit
55aa1802
authored
Nov 25, 2015
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix printing for FsyncIn and SetAttr.fh
parent
850263fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fuse/print.go
fuse/print.go
+6
-2
No files found.
fuse/print.go
View file @
55aa1802
...
...
@@ -125,7 +125,7 @@ func (me *SetAttrIn) string() string {
if
me
.
Valid
&
FATTR_MTIME
!=
0
{
s
=
append
(
s
,
fmt
.
Sprintf
(
"mtime %d.%09d"
,
me
.
Mtime
,
me
.
Mtimensec
))
}
if
me
.
Valid
&
FATTR_
MTIME
!=
0
{
if
me
.
Valid
&
FATTR_
FH
!=
0
{
s
=
append
(
s
,
fmt
.
Sprintf
(
"fh %d"
,
me
.
Fh
))
}
// TODO - FATTR_ATIME_NOW = (1 << 7), FATTR_MTIME_NOW = (1 << 8), FATTR_LOCKOWNER = (1 << 9)
...
...
@@ -148,7 +148,7 @@ func (me *OpenOut) string() string {
FlagString
(
FuseOpenFlagNames
,
int64
(
me
.
OpenFlags
),
""
))
}
func
(
me
*
InitIn
)
S
tring
()
string
{
func
(
me
*
InitIn
)
s
tring
()
string
{
return
fmt
.
Sprintf
(
"{%d.%d Ra 0x%x %s}"
,
me
.
Major
,
me
.
Minor
,
me
.
MaxReadAhead
,
FlagString
(
initFlagNames
,
int64
(
me
.
Flags
),
""
))
...
...
@@ -161,6 +161,10 @@ func (me *InitOut) string() string {
me
.
CongestionThreshold
,
me
.
MaxBackground
,
me
.
MaxWrite
)
}
func
(
s
*
FsyncIn
)
string
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d Flags %x}"
,
s
.
Fh
,
s
.
FsyncFlags
)
}
func
(
me
*
SetXAttrIn
)
string
()
string
{
return
fmt
.
Sprintf
(
"{sz %d f%o}"
,
me
.
Size
,
me
.
Flags
)
}
...
...
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