Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2004 09:28:23 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How do inodes work?
Message-ID:  <20040516082823.GA21655@walton.maths.tcd.ie>
In-Reply-To: <20040516022353.V37455@ganymede.hub.org>
References:  <20040516022353.V37455@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 16, 2004 at 02:25:37AM -0300, Marc G. Fournier wrote:
> so I take there are 'gaps' in the inode list?  it doesn't re-use freed
> ones but keeps climbing until maybe it rolls around or something?

A particular numbered inode always lives in the same place on the
disk. When choosing what inode to use for a new file, the filesystem
tries to pick a inode to put the file close to the directory it is
being created in. This is the dirpref optimisation introduced a few
years ago - previously inodes were chosen from a part of a disk that
had the most nearby free space.

	David.



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