Commit dc4ff97b authored by Garret Kelly's avatar Garret Kelly Committed by Han-Wen Nienhuys

nodefs: Fix godoc for NewReadOnlyFile

The File returned for NewReadOnlyFile only blocks writes not reads and
writes.
parent f48dd028
...@@ -218,8 +218,7 @@ func (f *loopbackFile) GetAttr(a *fuse.Attr) fuse.Status { ...@@ -218,8 +218,7 @@ func (f *loopbackFile) GetAttr(a *fuse.Attr) fuse.Status {
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
// NewReadOnlyFile wraps a File so all read/write operations are // NewReadOnlyFile wraps a File so all write operations are denied.
// denied.
func NewReadOnlyFile(f File) File { func NewReadOnlyFile(f File) File {
return &readOnlyFile{File: f} return &readOnlyFile{File: f}
} }
......
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