News for hackers. Stuff that matters.
Re:Show HN: fcp – A significantly faster alternative to cp(1... by formerly_proven on Wednesday June 16, 2021 @09:27AM (#27528279)
That's better for reading the data, but doesn't work for ordering stat()s because looking up extent information requires reading the inode, but that's what we're trying to make linear-ish at that point.
Re:Show HN: fcp – A significantly faster alternative to cp(1... by the8472 on Wednesday June 16, 2021 @02:06PM (#27531590)
you can optimize for both. obtain directory entries, sort by inode, do a batch stat (ideally via io_uring) and fiemap and then sort again by extent order.

And if you only need the `d_type` instead of the full stat struct, then you get that for free from getdents(2) on some filesystems, this is what platter_walk does.