From: Christopher Faylor Date: Fri, 20 Jan 2006 03:38:03 GMT Subject: Re: [PATCH] fsck-objects: support platforms without d_ino in struct dirent. Message-ID: <20060120033803.GF5090@trixie.casa.cgf.cx> In-Reply-To: <7vu0bz7lbk.fsf@assigned-by-dhcp.cox.net> On Thu, Jan 19, 2006 at 05:13:51PM -0800, Junio C Hamano wrote: >The d_ino field is only used for performance reasons in >fsck-objects. On a typical filesystem, i-number tends to have a >strong correlation with where the actual bits sit on the disk >platter, and we sort the entries to allow us scan things that >ought to be close together together. > >If the platform lacks support for it, it is not a big deal. >Just do not use d_ino for sorting, and scan them unsorted. Ah, interesting. I don't know if the file id objects would have that sort of correlation on NT but obviously the file hashes don't. cgf