Howard Chu wrote:
> > What locking is required?

locking rw per directory. A directory is the group of dentries with the same 
parent inode.
This is a small subset of the whole list. The whole list is for all the 
dentries of a FUSE mountpoint.

> > Keeping LMDB keysize limits in mind, it will work. But you'd probably do 
> > better using LMDB's DUPSORT
> feature. Use the parent inode as the key, use the name as the value.

Well, what you suggest is that the lookup does not use the name: after a search 
for the first dentry having the desired parent inode, then step by step to get 
to the dentry with the right name. This is not what I'm looking for: then I can 
better use an internal hashtable.
I'm hoping I can use lmdb to do a lookup using the parent ino and the name.
Is it a bad thing to use the name next to the parent ino as well? You mention 
the LMDB keysize.

S. Bon

Reply via email to