git: sbin/hammer2: Show freemap stats for all bitmap states

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 19 07:53:14 PDT 2019


commit ce5507452b39e1ff97103f1dd716ddc76833db25
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Sep 19 02:01:46 2019 +0900

    sbin/hammer2: Show freemap stats for all bitmap states
    
    Add "Total possibly free storage" and "Total allocated storage"
    stats which correspond to bitmap value of 2 and 3.
    
    In addition to above, add "Total unavailable storage" (boot/aux/etc)
    and "Total freemap storage". The total freemap storage value should
    be sum of all others.
    
    Note that unallocated or allocated stats represent space out of
    freemap leaf that can be traversed from root, excluding space for
    boot/aux/etc area. Not out of the entire device.

Summary of changes:
 sbin/hammer2/cmd_debug.c | 60 +++++++++++++++++++++++++++++++++---------------
 1 file changed, 42 insertions(+), 18 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list