Bug 267687

Summary: Port HAMMER2 from DragonFly (read-only support)
Product: Base System Reporter: kusumi.tomohiro
Component: kernAssignee: Gordon Bergling <gbe>
Status: Closed FIXED    
Severity: Affects Some People CC: ae, gbe, grahamperrin, kusumi.tomohiro
Priority: --- Keywords: needs-qa
Version: CURRENT   
Hardware: Any   
OS: Any   
URL: https://github.com/kusumi/freebsd-src/commits/hammer2_1
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254102
https://reviews.freebsd.org/D37354
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267982

Description kusumi.tomohiro 2022-11-10 07:30:15 UTC
The patch can be downloaded from here.
https://www.dragonflybsd.org/~tkusumi/diff/freebsd/hammer2/0001-Port-HAMMER2-from-DragonFly-read-only-support.patch

Since this is read-only support, I've uploaded a 4GiB image created by makefs(8).
The image contains FreeBSD 13.1-RELEASE src.
https://www.dragonflybsd.org/~tkusumi/diff/freebsd/hammer2/img/

It's probably easiest to use mdconfig(8) to mount the image.
 # mdconfig /path/to/image
 # mount_hammer2 /dev/mdX /path/to/mntpt

A false-positive lock order reversal message may appear on mounting.
Comment 1 kusumi.tomohiro 2022-11-10 07:35:26 UTC
Also available on GitHub.
I haven't created a PR for this GitHub mirror.

https://github.com/kusumi/freebsd-src/commits/hammer2_1
Comment 2 Gordon Bergling freebsd_committer freebsd_triage 2022-11-11 06:25:01 UTC
Thanks for the contribution. I have created a differential for it.
Comment 3 Gordon Bergling freebsd_committer freebsd_triage 2023-11-16 11:38:50 UTC
There is a port sysutils/hammer2 now available.