Subject: Re: Returning inode generation numbers
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-kern
Date: 09/09/2005 16:41:48
On 9/9/05, YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> wrote:
> > The thing is that I want to access the generation number from
> > userland to write a regression test for tmpfs.  The test should
> > verify that when a node is reused, it gets a different number.
> > But there is actually no way to write this.
>=20
> what you want to verify is filehandle uniqueness, isn't it?
> if so, how about using getfh instead?

Hmm... that will do the trick.  Thanks.

> > Is the attached patch correct?  Any objections in adding this feature?
>=20
> i object because the "feature" is somewhat pointless.

But then... why do we have %v in stat(1) or st_gen in struct stat?
(If there is any other reason behind standards, that is.)

Cheers,

--=20
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/