DragonFly BSD
DragonFly commits List (threaded) for 2012-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer2 hammer2 - correct saveoff in hammer2_vop_readdir()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Feb 2012 21:25:53 -0800 (PST)

commit 028a55bb322149dbe76d315fcb4b3d878694f2b0
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]