git: sbin/hammer: Add obfuscate option to hammer show

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 5 03:54:55 PST 2016


commit 337ec5f8a0e7641024a16c9b647ca804d753334f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Mar 5 14:44:21 2016 +0900

    sbin/hammer: Add obfuscate option to hammer show
    
    Add an option not to print directory entry name so that users
    can send hammer show output to someone else if necessary
    without making public their name. Most users never use hammer
    show, but some users do and see errors in it.
    
    By default hammer show printfs directory entry name like
     dir-entry ino=00000001007a933b lo=00000000 name="hammer.c"
    but by using this option it would be like
     dir-entry ino=00000001007a933b lo=00000000
    
    Note that hammer show command is a subcommand of /sbin/hammer,
    so this option is not a part of getopt(3) options. It needs
    to be used as follows if one does not need to filter btree.
     # hammer -f /dev/da1:/dev/da2:/dev/da3 show none none obfuscate
    
    Also note that this option is not written in hammer(8) manpage
    just like filter/nofilter option is not written.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/337ec5f8a0e7641024a16c9b647ca804d753334f


-- 
DragonFly BSD source repository



More information about the Commits mailing list