freebsd-nq/sbin/newfs
Kirk McKusick ec888383cf Continuing efforts to provide hardening of FFS, this change adds a
check hash to the superblock. If a check hash fails when an attempt
is made to mount a filesystem, the mount fails with EINVAL (Invalid
argument). This avoids a class of filesystem panics related to
corrupted superblocks. The hash is done using crc32c.

Check hases are added only to UFS2 and not to UFS1 as UFS1 is primarily
used in embedded systems with small memories and low-powered processors
which need as light-weight a filesystem as possible.

Reviewed by:  kib
Tested by:    Peter Holm
Sponsored by: Netflix
2018-10-23 21:10:06 +00:00
..
Makefile
Makefile.depend
mkfs.c Continuing efforts to provide hardening of FFS, this change adds a 2018-10-23 21:10:06 +00:00
newfs.8
newfs.c newfs: clean up warnings 2018-06-24 05:40:42 +00:00
newfs.h
ref.test
runtest00.sh
runtest01.sh