Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 1997 08:52:18 +0100 (MET)
From:      Guido van Rooij <guido@gvr.win.tue.nl>
To:        mpp@freefall.freebsd.org (Mike Pritchard)
Cc:        danny@panda.hilink.com.au, freebsd-security@freebsd.org
Subject:   Re: 4.4BSD NFS File Handles (fwd)
Message-ID:  <199703070752.IAA01682@gvr.win.tue.nl>
In-Reply-To: <199703070602.WAA17190@freefall.freebsd.org> from Mike Pritchard at "Mar 6, 97 10:02:49 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Pritchard wrote:
> Daniel O'Callaghan wrote:
> > 
> > In addition to returning traditional information, such as the creation time,
> > size, inode number and last modification time, the 4.4BSD stat(2) system
> > call and related functions return a field called st_gen.  The st_gen field
> > is a 4 byte value which is different for each item on the filesystem.
> 
> I've worked on other systems in the past where we only returned
> st_gen if the caller was root.
> 
> If I remember right, the last time I looked at how the kernel
> assigned generation number, it didn't do a very good job
> of it (they were pretty predictable).  We should probaby
> change them to use the random() kernel function.

I also want to have the fsirand stuff. That should be enough. Perhaps
it should even be built in newfs.

-Guido



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703070752.IAA01682>