git: sbin/hammer: Add clrpfs()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Sep 9 10:32:19 PDT 2016


commit 1b23fc226632a6152a2060520576b99cd3f876ac
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Sep 10 01:00:24 2016 +0900

    sbin/hammer: Add clrpfs()
    
    The one in getpfs() is okay to clear pfs_id with -1,
    because scanpfsid() will overwrite pfs_id without using it.
    
    It's also okay to clear the whole &pfs before init_pfsd().
    This is actually better than not clearing header part.

Summary of changes:
 sbin/hammer/cmd_cleanup.c   |  5 +----
 sbin/hammer/cmd_mirror.c    | 18 ++++--------------
 sbin/hammer/cmd_pfs.c       | 40 +++++++++++++++++++++-------------------
 sbin/hammer/cmd_snapshot.c  |  6 +-----
 sbin/hammer/cmd_softprune.c |  6 +-----
 sbin/hammer/hammer.h        |  2 ++
 6 files changed, 30 insertions(+), 47 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b23fc226632a6152a2060520576b99cd3f876ac


-- 
DragonFly BSD source repository



More information about the Commits mailing list