NetBSD/sbin/fsck_ffs
christos dfb7cec746 Add a -z flag to zero out the up to 4 bytes of padding in directory entry
names (including the terminating NUL), as well as directory entries with
extra free space (d->d_reclen > UFS_DIRSIZ(d)).

Inspired from FreeBSD:
    https://svnweb.freebsd.org/base?view=revision&revision=347066

While the kernel has been fixed to deal with the padding bytes (new
kernels will correctly zero out all the padding after the name), it
appears that there is still an issue with directory entries with extra
free space, since a newly created and populated filesystem gets modified
with "fsck_ffs -z".
2019-05-05 14:59:06 +00:00
..
SMM.doc Reorg docs, part 3: 2014-07-05 19:23:15 +00:00
dir.c Add a -z flag to zero out the up to 4 bytes of padding in directory entry 2019-05-05 14:59:06 +00:00
extern.h
fsck_ffs.8 Add a -z flag to zero out the up to 4 bytes of padding in directory entry 2019-05-05 14:59:06 +00:00
fsck.h Add a -z flag to zero out the up to 4 bytes of padding in directory entry 2019-05-05 14:59:06 +00:00
inode.c Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where 2017-02-08 16:11:39 +00:00
main.c Add a -z flag to zero out the up to 4 bytes of padding in directory entry 2019-05-05 14:59:06 +00:00
Makefile Restore the MKGROFF=bo MKCXX=yes build 2018-06-11 14:18:16 +00:00
Makefile.common Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where 2017-02-08 16:11:39 +00:00
pass1.c Treat an inode with "mode == 0" and "blocks != 0" as partially allocated 2018-02-13 11:20:08 +00:00
pass1b.c Stuff UFS_ in front of a few of ufs's symbols to reduce namespace 2013-01-22 09:39:11 +00:00
pass2.c Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where 2017-02-08 16:11:39 +00:00
pass3.c Stuff UFS_ in front of a few of ufs's symbols to reduce namespace 2013-01-22 09:39:11 +00:00
pass4.c Stick ffs_ in front of the following macros: 2013-06-23 22:03:34 +00:00
pass5.c Stick ffs_ in front of the following macros: 2013-06-23 22:03:34 +00:00
pass6.c stdlib.h, not malloc.h 2012-08-26 09:33:18 +00:00
quota2.c - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
setup.c Add a test for duplicate inodes on the persistent snapshot list. 2018-10-05 09:49:23 +00:00
utilities.c Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where 2017-02-08 16:11:39 +00:00
wapbl.c