tmpfs, NFS, file handles
Hi,
At present one can probably not run NFS (or InterMezzo) on top of tmpfs.
Is there a suggested solution for fh_to_dentry and dentry_to_fh for tmpfs?
An "iget" based solution might work but at present tmpfs inodes are not hashed.
Thanks for any suggestions!
Quoted 11 lines · Peter J. Braam
Hi,
At present one can probably not run NFS (or InterMezzo) on top of tmpfs.
Is there a suggested solution for
fh_to_dentryanddentry_to_fhfor tmpfs?An "iget" based solution might work but at present tmpfs inodes are not hashed.
I talked to neil brown about NFS and ramfs... he mentioned using iunique()
Signature · 4 lines
Jeff Garzik | "Why is it that attractive girls like you
Building 1024 | always seem to have a boyfriend?"
MandrakeSoft | "Because I'm a nympho that owns a brewery?"
| - BBC TV show "Coupling"Hi,
Quoted 1 line
"Peter J. Braam" wrote:
...
Quoted 5 lines
Quoted 5 lines
Is there a suggested solution for
fh_to_dentryanddentry_to_fhfor tmpfs?An "iget" based solution might work but at present tmpfs inodes are not hashed.
On Wed, Feb 20, 2002 at 11:56:40AM -0500, Jeff Garzik wrote:
...
Quoted 2 lines
I talked to neil brown about NFS and ramfs... he mentioned using
iunique()
So do I understand that hashing tmpfs inodes is perhaps the way to go?
Would the following also work?
- have a 32 bit counter: set inode->i_ino to count++
- up the generation number each time the counter warps.
Between boot cycles NFS could still get confused, that might be helped by setting the initial generation to the system time.
Thoughts anyone?
- Peter -
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Peter J Braam <[email protected]> writes:
> Would the following also work?
> - have a 32 bit counter: set inode->i_ino to count++
That is exactly what iunique() does except that it also checks for uniqueness and allows you to specify a minimum value. Sooner or later your 32-bit counter will wrap round...
> - up the generation number each time the counter warps.
> Between boot cycles NFS could still get confused, that might be > helped by setting the initial generation to the system time.
Yep. That is what the 'fat' filesystem does.
Cheers,
Trond
Hi Peter,
Quoted 2 lines · Peter J. Braam
Between boot cycles NFS could still get confused, that might be helped by setting the initial generation to the system time.
Between boot cycles you loose _all_ tmpfs files. That's what the 'tmp' in tmpfs talks about ;-)
Greetings
Christoph