[Bug 277739] makefs creates UFS filesystem that fsck considers invalid

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 May 2026 05:38:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277739

Kirk McKusick <mckusick@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |mckusick@FreeBSD.org

--- Comment #5 from Kirk McKusick <mckusick@FreeBSD.org> ---
When makefs builds UFS filesystems by defaulk it is using UFS1 (which we
stopped doing two decades ago). Further it is at least a decade out of date
having none of the modern reliability improvements such as superblock and inode
checksums. It also is still using layout styles that are at least a decade out
of date. It appears to be using NetBSD's ufs filesystem.  Rather than trying to
bring all that code up to date, it should just fork off a mkfs to build the
filesystem as in that way it will keep up with ongoing work to harden and
improve UFS. It would require minimal work to adapt mkfs to writing a disk
image to a file rather than to a disk partition.

See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273725

-- 
You are receiving this mail because:
You are the assignee for the bug.