git: sbin/hammer: Add filter mode when lo:objid directive is used

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 21 06:59:02 PDT 2015


commit c6121c98afb8e926e2782646f067aba21713bacd
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Mar 21 22:11:33 2015 +0900

    sbin/hammer: Add filter mode when lo:objid directive is used
    
    - This commit is expansion to the commit e7f926a5 and edcc8136.
      These commits make hammer show command search and print btree
      elements that match lo:objid using '*' mark, but go back to
      normal iteration once it hits matched elements. This commit
      gives options to the way it filters unmatched elements.
    
    - Using the arg "filter" after the directive makes it continue
      filtering without going back to normal iteration. This makes
      it only show nodes that have matched elements.
    
    - Using the arg "nofilter" after the directive makes it not to
      filter from the beginning (same as when lo:objid directive is
      not specified except that this does print '*' for those that
      match lo:objid).
    
    - Not specifying any arg after the directive works the same as
      it did before.

Summary of changes:
 sbin/hammer/cmd_show.c | 13 +++++++------
 sbin/hammer/hammer.c   |  9 ++++++++-
 sbin/hammer/hammer.h   |  2 +-
 3 files changed, 16 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c6121c98afb8e926e2782646f067aba21713bacd


-- 
DragonFly BSD source repository



More information about the Commits mailing list