Commit 7ce5b4c6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ea3987b5
...@@ -245,7 +245,7 @@ func (f *skFile) Read(dest []byte, /*ignored*/off int64) (fuse.ReadResult, fuse. ...@@ -245,7 +245,7 @@ func (f *skFile) Read(dest []byte, /*ignored*/off int64) (fuse.ReadResult, fuse.
err = nil err = nil
} }
if err == io.EOF { if err == io.EOF {
// XXX what here? n = 0 // read(2): "zero indicates end of file"
} }
if err != nil { if err != nil {
return nil, err2LogStatus(err) return nil, err2LogStatus(err)
...@@ -276,7 +276,7 @@ func (f *skFile) Write(data []byte, /*ignored*/off int64) (uint32, fuse.Status) ...@@ -276,7 +276,7 @@ func (f *skFile) Write(data []byte, /*ignored*/off int64) (uint32, fuse.Status)
err = nil err = nil
} }
if err == io.ErrClosedPipe { if err == io.ErrClosedPipe {
// XXX what here? err = syscall.ECONNRESET // XXX better EPIPE?
} }
if err != nil { if err != nil {
return 0, err2LogStatus(err) return 0, err2LogStatus(err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment