opnsense-src/usr.sbin/makefs
Mark Johnston 3836e3592e Fix a logic bug in makefs lazy inode initialization.
We may need to initialize multiple inode blocks before writing a given
inode. makefs(8) was only initializing a single block at a time, so
certain inode allocation patterns could lead to a situation where it
wrote an inode to an uninitialized block. That inode might be clobbered
by a later initialization, resulting in a filesystem image containing
directory entries that point to a seemingly unused inode.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D13505
2017-12-16 20:19:00 +00:00
..
cd9660 various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ffs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
msdos makefs: add copies of NetBSD makefs msdos source files 2017-06-23 18:58:28 +00:00
tests Update several more URLs 2017-10-29 08:17:03 +00:00
cd9660.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
cd9660.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ffs.c Fix a logic bug in makefs lazy inode initialization. 2017-12-16 20:19:00 +00:00
ffs.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
makefs.8 makefs: add -O (offset) option 2017-05-26 15:49:20 +00:00
makefs.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
makefs.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
msdos.c makefs: add copies of NetBSD makefs msdos source files 2017-06-23 18:58:28 +00:00
msdos.h makefs: add copies of NetBSD makefs msdos source files 2017-06-23 18:58:28 +00:00
mtree.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
walk.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00