usr.sbin/makefs/hammer2: Support hardlink creation in "-o R" option
commit2d0322db5ddc74ad1f573fa5144014412d375a15
authorTomohiro Kusumi <tkusumi@netbsd.org>
Sat, 1 Jul 2023 09:02:10 +0000 (1 02:02 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 2 Jul 2023 14:49:17 +0000 (2 07:49 -0700)
tree6e8c5d7f9127fad779a7148fbf13a9186b2a9761
parent6da97f51504a575acd558f21089e0b2bcfbe8b37
usr.sbin/makefs/hammer2: Support hardlink creation in "-o R" option

which was missing part in 5e8b0eb766966577a1da788053d7ccaa443fa222.

If the underlying file system of destination files doesn't support
hardlink and/or creation fails, the failure is simply ignored.
It falls back on previous behavior (create different inodes with the
same file contents).
usr.sbin/makefs/hammer2.c