Subject: Re: CVS commit: src
To: David Laight <david@l8s.co.uk>
From: Bill Studenmund <wrstuden@netbsd.org>
List: source-changes
Date: 09/21/2005 13:58:19
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 21, 2005 at 12:09:32AM +0100, David Laight wrote:
> On Thu, Sep 15, 2005 at 03:03:09PM -0700, Bill Studenmund wrote:
> >=20
> > Other file systems have taken the root =3D=3D 2 behavior and used inode=
 1 for=20
> > special things.
>=20
> IIRC inode 0 =3D> file containing the inode table
>      inode 1 =3D> file containing the allocation bitmap
>      inode 2 =3D> swap space
> (or maybe in a slightly different order)

I think you're remembering something other than ffs. :-)

inode 2 is the root directory for ffs. inode 1 was historically the bad=20
blocks file, which was connected to no directory. See comments in=20
sys/ufs/ufs/dinode.h.

inode # 1 is also the number returned for whiteout directory entries. :-)

Take care,

Bill

--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFDMclrWz+3JHUci9cRAnDUAKCC16/vJPptl763DEYiUDYRy1mRGwCeJQRF
h8aUqjN3WhWduLwei0x3UCA=
=uAR0
-----END PGP SIGNATURE-----

--azLHFNyN32YCQGCU--