commit 38c04e647523b42b168ebf9b328619ba8992824e Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Thu Feb 26 20:36:42 2015 +0900
sbin/newfs_hammer: Properly set ondisk localization value - Make hammer_newfs properly set ondisk localization for the first two elements (for root inode and PFS) of the root node. - HAMMER does cursor lookup using sum of onmemory ip(inode) localization and localization type, so in this case hammer_newfs needs to write ondisk bits using (HAMMER_DEF_LOCALIZATION + type) instead of just a type (see hammer_get_inode() and hammer_load_pseudofs() for details). - It makes no binary difference since HAMMER_DEF_LOCALIZATION is 0, however it should be fixed for the consistency (e.g. if the macro happens to be defined differently, although it is not likely as it forces ondisk layout change). Summary of changes: sbin/newfs_hammer/newfs_hammer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38c04e647523b42b168ebf9b328619ba8992824e -- DragonFly BSD source repository