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
e2988d03
Commit
e2988d03
authored
Mar 28, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
acc03ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
fuse/request.go
fuse/request.go
+12
-4
No files found.
fuse/request.go
View file @
e2988d03
...
...
@@ -77,6 +77,8 @@ func (r *request) clear() {
r
.
readResult
=
nil
}
const
debugDataDumpMax
=
8
// maximum #bytes of request/response data to dump
func
(
r
*
request
)
InputDebug
()
string
{
val
:=
""
if
r
.
handler
.
DecodeIn
!=
nil
{
...
...
@@ -89,7 +91,13 @@ func (r *request) InputDebug() string {
}
if
len
(
r
.
arg
)
>
0
{
names
+=
fmt
.
Sprintf
(
" %db"
,
len
(
r
.
arg
))
l
:=
len
(
r
.
arg
)
s
:=
""
if
l
>
debugDataDumpMax
{
l
=
debugDataDumpMax
s
=
"..."
}
names
+=
fmt
.
Sprintf
(
" %db %q%s"
,
len
(
r
.
arg
),
r
.
arg
[
:
l
],
s
)
}
return
fmt
.
Sprintf
(
"rx %d: %s i%d %s%s"
,
...
...
@@ -120,13 +128,13 @@ func (r *request) OutputDebug() string {
}
else
{
l
:=
len
(
r
.
flatData
)
s
:=
""
if
l
>
8
{
l
=
8
if
l
>
debugDataDumpMax
{
l
=
debugDataDumpMax
s
=
"..."
}
spl
=
fmt
.
Sprintf
(
" %q%s"
,
r
.
flatData
[
:
l
],
s
)
}
flatStr
=
fmt
.
Sprintf
(
" %db
data
%s"
,
r
.
flatDataSize
(),
spl
)
flatStr
=
fmt
.
Sprintf
(
" %db %s"
,
r
.
flatDataSize
(),
spl
)
}
}
...
...
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