Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sbin/fsck_ffs



Module Name:    src
Committed By:   martin
Date:           Sat May 13 12:17:55 UTC 2023

Modified Files:
        src/sbin/fsck_ffs [netbsd-10]: pass2.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #164):

        sbin/fsck_ffs/pass2.c: revision 1.52

Apply this commit from FreeBSD:
  commit 6bae6625e0e06816c80ac4971dfccf0643abe3f0
  Author: Kirk McKusick <mckusick%FreeBSD.org@localhost>
  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


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.51.22.1 src/sbin/fsck_ffs/pass2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index