Bug 243929

Summary: fstyp: Sync HAMMER1/2 detection support with DragonFly BSD
Product: Base System Reporter: kusumi.tomohiro
Component: binAssignee: Pedro F. Giffuni <pfg>
Status: Closed FIXED    
Severity: Affects Only Me CC: kusumi.tomohiro
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description kusumi.tomohiro 2020-02-06 15:58:32 UTC
The FreeBSD fstyp supports HAMMER1/2 based on somewhat old DragonFly source.

Below diff is to make them uptodate with the current DragonFly's fstyp HAMMER1/2 code base without making changes to other fstyp files (note that DragonFly does this in their fstyp).

This makes easier to sync up with DragonFly's HAMMER1/2 detection support in the future.

Git format diff
https://www.dragonflybsd.org/~tkusumi/diff/freebsd/0001-fstyp-Sync-HAMMER1-2-support-with-DragonFly.patch
Comment 1 Pedro F. Giffuni freebsd_committer freebsd_triage 2020-02-06 17:56:43 UTC
Looks good to me, thank you!
FWIW, I am considering dropping the headers and using only the required structures directly.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-02-06 18:04:54 UTC
A commit references this bug:

Author: pfg
Date: Thu Feb  6 18:04:16 UTC 2020
New revision: 357631
URL: https://svnweb.freebsd.org/changeset/base/357631

Log:
  fstyp: sync HAMMER1/2 detection support with DragonFly BSD.

  Submitted by:	Tomohiro Kusumi
  PR:		243929

Changes:
  head/usr.sbin/fstyp/hammer.c
  head/usr.sbin/fstyp/hammer2.c
Comment 3 Conrad Meyer freebsd_committer freebsd_triage 2020-02-06 23:29:53 UTC
Thanks!