git: sbin/hammer: Cleanup pfs commands by adding getdir()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Apr 1 14:32:35 PDT 2015


commit c8b9d242a2fe757c6e06f32abd37f0e20287d2bd
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Mar 30 22:20:19 2015 +0900

    sbin/hammer: Cleanup pfs commands by adding getdir()
    
    - hunk1 - Add a static function getdir() for pfs operations.
      Returns a path to a directory containing the arg.
    
    - hunk2,3 - Replace existing code with getdir(). Since dirpath
      is necessary only when islink, move it inside the if(islink).
    
    - hunk4 - Replace existing code with getdir().
    
    - hunk5 - Add missing free(dirpath).

Summary of changes:
 sbin/hammer/cmd_pseudofs.c | 56 ++++++++++++++++++++++++----------------------
 1 file changed, 29 insertions(+), 27 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list