Commit f46124a2 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: fix NewLockingFile doc.

parent 963fd2e3
...@@ -13,8 +13,7 @@ type lockingFile struct { ...@@ -13,8 +13,7 @@ type lockingFile struct {
file File file File
} }
// NewDefaultFile returns a File instance that returns ENOSYS for // NewLockingFile serializes operations an existing File.
// every operation.
func NewLockingFile(mu *sync.Mutex, f File) File { func NewLockingFile(mu *sync.Mutex, f File) File {
return &lockingFile{ return &lockingFile{
mu: mu, mu: mu,
...@@ -26,7 +25,7 @@ func (f *lockingFile) SetInode(*Inode) { ...@@ -26,7 +25,7 @@ func (f *lockingFile) SetInode(*Inode) {
} }
func (f *lockingFile) InnerFile() File { func (f *lockingFile) InnerFile() File {
return nil return f.file
} }
func (f *lockingFile) String() string { func (f *lockingFile) String() string {
......
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