git: sbin/newfs_hammer: Minor fixes

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Jul 18 11:26:07 PDT 2015


commit fac8cad69021402ba80df45825e7b057f6304833
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Jul 18 16:32:04 2015 +0900

    sbin/newfs_hammer: Minor fixes
    
    - It's better to call rel_volume() for the root volume here
      without waiting for potential non-root ones to do it as
      they all modifies the root volume.
    
    - Also add assertions to ensure a caller calls this function
      for the root volume first, and then non-root volumes.
      (non-root volumes do += to these volume statistics)

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 4 ++++
 1 file changed, 4 insertions(+)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list