Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.sbin/makefs



Module Name:    src
Committed By:   tsutsui
Date:           Sat Jan 10 08:58:47 UTC 2026

Modified Files:
        src/usr.sbin/makefs: ffs.c makefs.8
        src/usr.sbin/makefs/ffs: ffs_alloc.c mkfs.c

Log Message:
makefs: add ffs version=0 for "newfs -O 0" compatible FFSv1 images

Allow "makefs -t ffs -o version=0" to create FFSv1 images in the
old on-disk format compatible with "newfs -O 0" (FFSv1 level 1),
intended for systems with ancient boot ROM requirements like LUNA.

This changes the FFSv1/FFSv2 selection to treat version 0 as FFSv1
and generates old-format directory entries (no d_type) when
version=0 is selected. The FFS mkfs parameters are adjusted so
that version 0 does not get overridden by the default FFSv1 settings.

Tested by generating FFS images with version=0, 1, and 2, and
verifying them with fsck_ffs(8).  It's also confirmed that
LUNA's boot ROM can load a bootloader from FFSv1 images generated
with version=0.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/usr.sbin/makefs/ffs.c
cvs rdiff -u -r1.73 -r1.74 src/usr.sbin/makefs/makefs.8
cvs rdiff -u -r1.33 -r1.34 src/usr.sbin/makefs/ffs/ffs_alloc.c
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/makefs/ffs/mkfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index