freebsd-dev/sbin/newfs
Kirk McKusick 62dc21b107 Additional validity checking in newfs(8).
A check in the superblock validity code verifies that the computed
size of the filesystem cylinder groups (CGSIZE macro) does not
exceed the filesystem block size (fs_bsize).

A report was received that a filesystem had been flagged as failing
this check. We were unable to determine how the reported filesystem
could have been created. This commit adds a check at the end of the
newfs(8) command to verify that the the cylinder group size is valid.
If an oversize cylinder group is found newfs(8) prints a diagnostic
output and rebuilds the filesystem to make it compiliant.

MFC after:   1 week
2023-04-29 17:01:18 -07:00
..
Makefile pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mkfs.c Additional validity checking in newfs(8). 2023-04-29 17:01:18 -07:00
newfs.8 Enable taking snapshots on UFS/FFS filesystems using journaled soft updates. 2022-11-12 22:56:03 -08:00
newfs.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
newfs.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ref.test
runtest00.sh *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00
runtest01.sh *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00