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
ae0f3969
Commit
ae0f3969
authored
Apr 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2332f049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
fuse/opcode.go
fuse/opcode.go
+1
-0
fuse/print_linux.go
fuse/print_linux.go
+12
-6
No files found.
fuse/opcode.go
View file @
ae0f3969
...
...
@@ -751,6 +751,7 @@ func init() {
_OP_MKNOD
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
MknodIn
)(
ptr
)
},
_OP_CREATE
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
CreateIn
)(
ptr
)
},
_OP_READ
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
ReadIn
)(
ptr
)
},
_OP_WRITE
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
WriteIn
)(
ptr
)
},
_OP_READDIR
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
ReadIn
)(
ptr
)
},
_OP_ACCESS
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
AccessIn
)(
ptr
)
},
_OP_FORGET
:
func
(
ptr
unsafe
.
Pointer
)
interface
{}
{
return
(
*
ForgetIn
)(
ptr
)
},
...
...
fuse/print_linux.go
View file @
ae0f3969
...
...
@@ -60,10 +60,16 @@ func (in *ReadIn) string() string {
}
func
(
in
*
WriteIn
)
string
()
string
{
// TODO Lx optional - only if WRITE_LOCKOWNER is set
return
fmt
.
Sprintf
(
"{h%d [%d +%d) %s L%d %s}"
,
in
.
Fh
,
in
.
Offset
,
in
.
Size
,
flagString
(
writeFlagNames
,
int64
(
in
.
WriteFlags
),
""
),
in
.
LockOwner
,
flagString
(
openFlagNames
,
int64
(
in
.
Flags
),
"RDONLY"
))
// δ: `Fh X` -> hX; Lx optional - only if WRITE_LOCKOWNER is set
s
:=
fmt
.
Sprintf
(
"{h%d [%d +%d)"
,
in
.
Fh
,
in
.
Offset
,
in
.
Size
)
wflags
:=
in
.
WriteFlags
&^
WRITE_LOCKOWNER
if
wflags
!=
0
{
s
+=
" "
+
flagString
(
writeFlagNames
,
int64
(
wflags
),
""
)
}
s
+=
" "
+
flagString
(
openFlagNames
,
int64
(
in
.
Flags
),
"RDONLY"
)
if
in
.
WriteFlags
&
WRITE_LOCKOWNER
!=
0
{
s
+=
fmt
.
Sprintf
(
" L%x"
,
in
.
LockOwner
)
}
s
+=
"}"
return
s
}
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