Subject: Re: CVS commit: src/sys/fs/tmpfs
To: Elad Efrat <elad@NetBSD.org>
From: Daniel Carosone <dan@geek.com.au>
List: source-changes
Date: 11/06/2006 09:10:04
--6tnUusbJa3r4kWvc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 05, 2006 at 10:04:43PM +0200, Elad Efrat wrote:
> > Randomly initialize the node's generation to make file handles less
> > predictable.  This solves a problem that may appear when serving a tmpfs
> > over NFS: if the server reboots, newly allocated files should have
> > different file handles; otherwise the remote clients could access files
> > they were not supposed to touch.
>=20
> can you please provide a way to disable this, say with a sysctl knob?

Why?  Even without the generation number randomisation to avoid
accidental collisions, there is no way for a program to depend upon
any kind of stability of inode numbers across reboots. =20

For what purpose would you wish to use such a knob?

--
Dan.

--6tnUusbJa3r4kWvc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFFTmE8EAVxvV4N66cRAkSBAKCGZheRkJqUAtEoWE4hui6pAs4qEgCgqKGU
zj7j7yrt94odcp1CXpkYz/E=
=49hr
-----END PGP SIGNATURE-----

--6tnUusbJa3r4kWvc--