LWN.net Logo

Widening ext4's readdir() cookie

Widening ext4's readdir() cookie

Posted Mar 29, 2013 11:32 UTC (Fri) by magnus (subscriber, #34778)
Parent article: Widening ext4's readdir() cookie

If a new opendir/readdir option was introduced that allowed returning the same directory entry twice, would that be easier to implement? Then you could go back to the earliest known node you have already passed if the tree gets rebalanced, which at least feels to me like a simpler problem to solve. And for extreme cases like an NFS server restart you could go back to the start of the dir.


(Log in to post comments)

Widening ext4's readdir() cookie

Posted Mar 29, 2013 13:54 UTC (Fri) by bfields (subscriber, #19510) [Link]

Off the top of my head one objection is that there's no guarantee of forward progress for readers.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds