git: sbin/newfs_hammer: Fix source for filesystem info after formatting
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Mon Oct 31 07:54:51 PDT 2016
commit 20f1a07f2d0987e067ccce5a655e4dde88ad9d81
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
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
More information about the Commits
mailing list