Re: tmpfs, NFS, file handles

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Wed Feb 20 2002 - 14:42:50 EST


>>>>> " " == Peter J Braam <braam@clusterfs.com> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:26 EST