Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 1997 22:02:49 -0800 (PST)
From:      Mike Pritchard <mpp>
To:        danny@panda.hilink.com.au (Daniel O'Callaghan)
Cc:        freebsd-security@freebsd.org
Subject:   Re: 4.4BSD NFS File Handles (fwd)
Message-ID:  <199703070602.WAA17190@freefall.freebsd.org>
In-Reply-To: <Pine.BSF.3.91.970307161526.2758N-100000@panda.hilink.com.au> from "Daniel O'Callaghan" at Mar 7, 97 04:15:41 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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.
--
Mike Pritchard
mpp@FreeBSD.org
"Go that way.  Really fast.  If something gets in your way, turn"



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