git: hammer2 hammer2 - correct saveoff in hammer2_vop_readdir()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 13 21:25:53 PST 2012


commit 028a55bb322149dbe76d315fcb4b3d878694f2b0
Author: Matthew Dillon <dillon at apollo.backplane.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
      blockref arrays.
    
      (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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/028a55bb322149dbe76d315fcb4b3d878694f2b0


-- 
DragonFly BSD source repository





More information about the Commits mailing list