Re: Efficient way to import snapshots?
- From
- Florian Weimer <fw@deneb.enyo.de>
- Date
- Jul 31, 2007, 07:54 UTC
- 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.