* Eric Sandeen: > No, because htree (dir_index) dirs returns names in hash-value > order, not inode number order. i.e. "at random." > > As you say, sorting by inode number will work much better... The dpkg folks tested this and it turns out that you get better results if you open the file and use FIBMAP to get the first block number, and sort by that. You could sort by inode number before the open/fstat calls, but it does not seem to help much. -- Florian Weimer <fweimer@xxxxxx> BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstraße 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html