usr.sbin/makefs/hammer2: Derive timestamp from source inodes
authorTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 18 Apr 2023 07:30:26 +0000 (00:30 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 18 Apr 2023 08:07:36 +0000 (01:07 -0700)
commitddd1d3d1ff2fecb3b58ce152a65095abaf634491
treeb0cd0def5022df3a53c389d4cd28c78119eca3bf
parent7e91130be5c1d2e22c8be7cae281a646706dd446
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.
usr.sbin/makefs/hammer2.c
usr.sbin/makefs/hammer2/hammer2.h
usr.sbin/makefs/hammer2/hammer2_inode.c
usr.sbin/makefs/hammer2/hammer2_subr.c
usr.sbin/makefs/hammer2/hammer2_vnops.c