Source-Changes archive

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

CVS commit: [netbsd-11] src/usr.sbin/makefs



Module Name:    src
Committed By:   martin
Date:           Thu Jan 22 20:15:57 UTC 2026

Modified Files:
        src/usr.sbin/makefs [netbsd-11]: ffs.c makefs.8
        src/usr.sbin/makefs/ffs [netbsd-11]: ffs_alloc.c mkfs.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #154):

        usr.sbin/makefs/ffs/ffs_alloc.c: revision 1.34
        usr.sbin/makefs/ffs/mkfs.c: revision 1.43
        usr.sbin/makefs/ffs.c: revision 1.78
        usr.sbin/makefs/makefs.8: revision 1.74

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.77.2.1 src/usr.sbin/makefs/ffs.c
cvs rdiff -u -r1.73 -r1.73.2.1 src/usr.sbin/makefs/makefs.8
cvs rdiff -u -r1.33 -r1.33.2.1 src/usr.sbin/makefs/ffs/ffs_alloc.c
cvs rdiff -u -r1.42 -r1.42.4.1 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