git: usr.sbin/makefs/hammer2: Derive timestamp from source inodes

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Apr 18 02:11:10 PDT 2023


commit ddd1d3d1ff2fecb3b58ce152a65095abaf634491
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Apr 18 00:30:26 2023 -0700

    usr.sbin/makefs/hammer2: Derive timestamp from source inodes
    
    makefs(8) HAMMER2 has been using current time for inode's ctime/mtime.
    Change hammer2_update_time() to use current fsnode's timestamp.
    Also support -T option.
    
    Note that both hammer2_curnode (current fsnode) and stampst (-T option)
    are global variables.

Summary of changes:
 usr.sbin/makefs/hammer2.c               |  5 +++++
 usr.sbin/makefs/hammer2/hammer2.h       |  5 ++++-
 usr.sbin/makefs/hammer2/hammer2_inode.c |  4 ++--
 usr.sbin/makefs/hammer2/hammer2_subr.c  | 14 ++++++++------
 usr.sbin/makefs/hammer2/hammer2_vnops.c | 12 ++++++------
 5 files changed, 25 insertions(+), 15 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list