Subject: CVS commit: src/sys/fs/tmpfs
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 11/05/2006 19:40:31
Module Name:	src
Committed By:	jmmv
Date:		Sun Nov  5 19:40:31 UTC 2006

Modified Files:
	src/sys/fs/tmpfs: tmpfs_subr.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.27 -r1.28 src/sys/fs/tmpfs/tmpfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.