Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
c18237fe
Commit
c18237fe
authored
Apr 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5b64b513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wcfs/misc.go
wcfs/misc.go
+5
-4
No files found.
wcfs/misc.go
View file @
c18237fe
...
...
@@ -83,12 +83,13 @@ func err2LogStatus(err error) fuse.Status {
// handling canceled -> EINTR, don't log
e
:=
errors
.
Cause
(
err
)
if
e
==
context
.
Canceled
{
switch
e
{
case
context
.
Canceled
:
return
fuse
.
EINTR
case
io
.
ErrClosedPipe
:
return
fuse
.
Status
(
syscall
.
ECONNRESET
)
}
// XXX io.ErrClosedPipe -> EPIPE?
// otherwise log as warnings EINVAL and as errors everything else
switch
e
.
(
type
)
{
case
*
eInvalError
:
...
...
@@ -377,7 +378,7 @@ func (f *skFile) Write(data []byte, /*ignored*/off int64, fctx *fuse.Context) (u
err
=
nil
}
if
err
==
io
.
ErrClosedPipe
{
err
=
syscall
.
ECONNRESET
// XXX better EPIPE?
err
=
syscall
.
ECONNRESET
}
if
err
!=
nil
{
return
0
,
err2LogStatus
(
err
)
...
...
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