DragonFly commits List (threaded) for 2012-02
git: hammer2 hammer2 - correct saveoff in hammer2_vop_readdir()
Author: Matthew Dillon <email@example.com>
Date: Mon Feb 13 21:22:01 2012 -0800
hammer2 - correct saveoff in hammer2_vop_readdir()
* When terminating a search early read the next entry and set save_off
to that, instead of setting it to the last returned entry's key + 1.
This ensures an exact match when the search resume. This could create
problems in the future but for now its a quick way to track the
directory scan due to the fully-associative nature of the on-media
(In the future we may have to sort the fully associative array on-media
to really solve the issue).
* This corrects repeated entries in 'ls' output.
Summary of changes:
sys/vfs/hammer2/hammer2_vnops.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
DragonFly BSD source repository