git: sbin/newfs_hammer: Properly allocate root inode and pfs from meta zone

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 28 15:31:31 PDT 2015


commit baa8ac599c07fae05af4faedf0e56ef599781353
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Mar 29 04:01:26 2015 +0900

    sbin/newfs_hammer: Properly allocate root inode and pfs from meta zone
    
    - newfs_hammer writes initial two elements, root inode and pfs
      directly from userspace (which is based on different code from
      HAMMER's storage allocation code in kernel space), but it's
      not using the right zone. It should be using META zone instead
      of SMALL_DATA zone.
    
    - This issue was found by zone checking added in commit 901e04c7.
    
    - Bug #2807 acked by dillon

Summary of changes:
 sbin/hammer/hammer_util.h        |  2 ++
 sbin/hammer/ondisk.c             | 14 +++++++++++++-
 sbin/newfs_hammer/newfs_hammer.c |  6 +++---
 3 files changed, 18 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list