commit 20f1a07f2d0987e067ccce5a655e4dde88ad9d81
Author: Tomohiro Kusumi <[email protected]>
Date: Mon Oct 31 01:08:53 2016 +0900
sbin/newfs_hammer: Fix source for filesystem info after formatting
This commit changes source of outputs after formatting a fs,
but doesn't change outputs itself, as it should result the same.
(the only difference in when -d is specified for junk space)
Now outputs are based on ondisk fields that are to be written
back to backing storage, rather than global variables within
sbin/newfs_hammer/newfs_hammer.c.
It's better to use actual ondisk fields than other variables
to make it robust against possible changes in newfs_hammer in
the future (i.e. ondisk fields are always ondisk fields).
Summary of changes:
sbin/newfs_hammer/newfs_hammer.c | 53 +++++++++++++++++++++++++++++-----------
1 file changed, 39 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/20f1a07f2d0987e067ccce5a655e4dde88ad9d81
--
DragonFly BSD source repository