Date: Sat, 18 Oct 2008 22:46:04 -0700 From: perryh@pluto.rain.com To: freebsd@edvax.de Cc: freebsd-questions@freebsd.org Subject: Re: Inode numbering Message-ID: <48fac99c.v09a2DdmpE7xdWZS%perryh@pluto.rain.com> In-Reply-To: <20081019044058.9ff31b6f.freebsd@edvax.de> References: <20081019044058.9ff31b6f.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon <edvax.de!freebsd@agora.rdrop.com> wrote: > Let's assume we have a directory D with an inode number i(D). > It contains a file F with its inode number i(F). > > May I state that i(D) < i(F)? In general, no. It might work in the special case where nothing on the filesystem is ever moved or removed, and no hard links are ever added. As a simple example, suppose I have directories foo and foo/bar, and file foo/baz, with i(foo) == 15, i(foo/baz) == 20, and i(foo/bar) == 25, satisfying your criterion. If I do mv foo/baz foo/bar (so baz is now foo/bar/baz), I will have i(foo/bar) == 25 and i(foo/bar/baz) == 20.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48fac99c.v09a2DdmpE7xdWZS%perryh>