NetBSD/sbin/fsck_ffs
chs 8f4d5a45a2 Apply this commit from FreeBSD:
commit 6bae6625e0e06816c80ac4971dfccf0643abe3f0
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Aug 17 14:19:59 2022 -0700

    Improve handling of missing '.' and '..' in UFS directories.

    The UFS filesystem expects to find '.' and '..' as the first two entries
    in a directory. The kernel's UFS name cache can become quite confused
    when these two entries are not present as the first two entries.

    Prior to this change, when the fsck_ffs(8) utility detected that
    '.' and/or '..' were missing, it would report them, but only offered
    to replace them if the space at the beginning of the directory was
    available. Otherwise it was left to the system administrator to
    move the offending file(s) out of the way and then rerun fsck_ffs(8)
    to create the '.' and '..' entries.

    With this change, fsck_ffs(8) will always be able to create the '.'
    and/or '..' entries. It moves any files in the way elsewhere in the
    directory block. If there is no room in the directory block to which
    to move them, they are placed in the lost+found directory.

    Reported by:  Peter Holm
    Sponsored by: The FreeBSD Foundation
2023-03-27 22:53:37 +00:00
..
SMM.doc
Makefile add support for new GCC 9 warnings that may be too much to fix 2020-09-06 07:20:26 +00:00
Makefile.common inode.c needs -O0 for vax 2019-10-28 22:52:43 +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 Restore backward compatibility of UFS2 with previous NetBSD releases by 2022-11-17 06:40:38 +00:00
fsck.h catch up with sign changes in the fs.h 2023-01-14 12:12:50 +00:00
fsck_ffs.8 Restore backward compatibility of UFS2 with previous NetBSD releases by 2022-11-17 06:40:38 +00:00
inode.c Use %zu rather than %lu to print a size_t (should fix i386 build). 2023-01-14 17:01:10 +00:00
main.c ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
pass1.c ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
pass1b.c ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
pass2.c Apply this commit from FreeBSD: 2023-03-27 22:53:37 +00:00
pass3.c
pass4.c catch up with sign changes in the fs.h 2023-01-14 12:12:50 +00:00
pass5.c ufs: more signed/unsigned fixes 2023-01-08 05:25:24 +00:00
pass6.c
quota2.c
setup.c ufs: more signed/unsigned fixes 2023-01-08 05:25:24 +00:00
utilities.c catch up with sign changes in the fs.h 2023-01-14 12:12:50 +00:00
wapbl.c Fix misleading fsck_ffs messages about wapbl journal replay. 2022-07-25 05:15:08 +00:00