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
d29867fe
Commit
d29867fe
authored
May 18, 2023
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: print GETATTR flags in input
Change-Id: Idf8f8f08849b279f1c8a346112d43e0eb44f9810
parent
ba7cc06b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
fuse/print.go
fuse/print.go
+3
-0
fuse/print_linux.go
fuse/print_linux.go
+1
-1
No files found.
fuse/print.go
View file @
d29867fe
...
...
@@ -77,6 +77,9 @@ var (
W_OK
:
"w"
,
R_OK
:
"r"
,
}
getAttrFlagNames
=
map
[
int64
]
string
{
FUSE_GETATTR_FH
:
"FH"
,
}
)
func
flagString
(
names
map
[
int64
]
string
,
fl
int64
,
def
string
)
string
{
...
...
fuse/print_linux.go
View file @
d29867fe
...
...
@@ -37,7 +37,7 @@ func (in *CreateIn) string() string {
}
func
(
in
*
GetAttrIn
)
string
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d
}"
,
in
.
Fh_
)
return
fmt
.
Sprintf
(
"{Fh %d
%s}"
,
in
.
Fh_
,
flagString
(
getAttrFlagNames
,
int64
(
in
.
Flags_
),
""
)
)
}
func
(
in
*
MknodIn
)
string
()
string
{
...
...
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