git: sbin/hammer: Add assert_volume_offset()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Sep 2 22:04:19 PDT 2016


commit 9221b5983f165c1cf10be28424138e02a1788207
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Sep 3 12:19:32 2016 +0900

    sbin/hammer: Add assert_volume_offset()
    
    It's invalid to call functions that are based on vol_free_off/end
    values unless these are properly initialized with zone-2 offsets.

Summary of changes:
 sbin/hammer/blockmap.c    |  1 +
 sbin/hammer/hammer_util.h |  1 +
 sbin/hammer/ondisk.c      | 11 +++++++++++
 3 files changed, 13 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9221b5983f165c1cf10be28424138e02a1788207


-- 
DragonFly BSD source repository



More information about the Commits mailing list