fsImpl.OpenDir

geesefs-0-30-9
Aaron Jacobs 2015-03-31 10:11:00 +11:00
parent 7f614f1faf
commit 11878520a6
1 changed files with 14 additions and 0 deletions

View File

@ -308,3 +308,17 @@ func (fs *fsImpl) OpenFile(
return
}
func (fs *fsImpl) OpenDir(
op *fuseops.OpenDirOp) {
var err error
defer fuseutil.RespondToOp(op, &err)
fs.mu.Lock()
defer fs.mu.Unlock()
// Verify that the inode has not been forgotten.
_ = fs.findInodeByID(op.Inode)
return
}