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