usr.sbin/makefs/hammer2: Support inode timestamp in "-o R" option
authorTomohiro Kusumi <tkusumi@netbsd.org>
Sat, 1 Jul 2023 08:12:51 +0000 (01:12 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 2 Jul 2023 11:45:20 +0000 (04:45 -0700)
commit6da97f51504a575acd558f21089e0b2bcfbe8b37
treebd12020860c492f907be0919b6669c5de8c93b84
parentdaa1a189255f27f57f3b4a3226a46a0508c0c398
usr.sbin/makefs/hammer2: Support inode timestamp in "-o R" option

which was missing part in 5e8b0eb766966577a1da788053d7ccaa443fa222.

Get timestamp from source inode within image file, and use that to
update newly created directory and regular file.

If the underlying file system of destination files doesn't support
timestamp and/or updating fails, the failure is simply ignored.
usr.sbin/makefs/hammer2.c
usr.sbin/makefs/hammer2/hammer2.h
usr.sbin/makefs/hammer2/hammer2_subr.c