git: sbin/hammer: Don't hardcode 0 for root PFS
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Dec 17 11:28:45 PST 2016
commit a5ff7917daf6959e132a6ab0a9b76648ca13532b
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Fri Dec 16 15:33:45 2016 +0900
sbin/hammer: Don't hardcode 0 for root PFS
HAMMER code doesn't hardcode 0 for root PFS
(e.g. see sbin/newfs_hammer, it could be !=0 if one wants to do so).
Fix the existing error messages using hardcoded 0.
Also add "(root PFS)" for PFS#0 in hammer info command.
Summary of changes:
sbin/hammer/cmd_info.c | 7 +++++--
sbin/hammer/cmd_pfs.c | 11 ++++++-----
sbin/hammer/hammer.8 | 14 ++++++--------
sbin/newfs_hammer/newfs_hammer.c | 2 +-
sys/vfs/hammer/hammer_btree.h | 2 +-
sys/vfs/hammer/hammer_disk.h | 2 +-
sys/vfs/hammer/hammer_pfs.c | 2 +-
7 files changed, 21 insertions(+), 19 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a5ff7917daf6959e132a6ab0a9b76648ca13532b
--
DragonFly BSD source repository
More information about the Commits
mailing list