From: Florian Weimer Date: Tue, 31 Jul 2007 07:54:54 GMT Subject: Re: Efficient way to import snapshots? Message-ID: <87r6mpj9dd.fsf@mid.deneb.enyo.de> In-Reply-To: <85odht3xd1.fsf@lola.goethe.zz> * David Kastrup: > a) one thread for opendir/readdir at every directory level > b) one thread for stating the files in readdir order (more likely to > correspond to the disk layout than sorted order) Not true for ext3. You need to sort by the d_ino field. This also tends to be benefit other file systems more than readdir order.