Commit c6fab548 authored by Aaron Jacobs's avatar Aaron Jacobs

Implemented other ID methods.

parent 19c26cc2
......@@ -122,10 +122,20 @@ func (fs *cachingFS) FooID() fuse.InodeID {
}
// LOCKS_EXCLUDED(fs.mu)
func (fs *cachingFS) DirID() fuse.InodeID
func (fs *cachingFS) DirID() fuse.InodeID {
fs.mu.Lock()
defer fs.mu.Unlock()
return fs.baseID + dirOffset
}
// LOCKS_EXCLUDED(fs.mu)
func (fs *cachingFS) BarID() fuse.InodeID
func (fs *cachingFS) BarID() fuse.InodeID {
fs.mu.Lock()
defer fs.mu.Unlock()
return fs.baseID + barOffset
}
// LOCKS_EXCLUDED(fs.mu)
func (fs *cachingFS) RenumberInodes()
......
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