freebsd-dev/sbin/fsck_ffs
Kirk McKusick 84a0e3f957 Make fsck_ffs more persistent in creating a lost+found directory.
When fsck_ffs is running in interactive mode and finds unlinked files,
it offers to either unlink them or place them in a lost+found directory.
If the lost+found directory option is requested and no lost+found
directory exists, fsck_ffs offers to create one. When creating one,
it must allocate an inode and a filesystem block. It attempts to
allocate them from the first cylinder group. If the first cylinder
group has a bad check hash, it gives up.

This change expands the search into later cylinder groups when the
first one fails with a bad check hash.

Reported by:  Chuck Silvers
Tested by:    Chuck Silvers
MFC after:    1 week
Sponsored by: Netflix
2021-04-26 16:48:30 -07:00
..
dir.c Make fsck_ffs more persistent in creating a lost+found directory. 2021-04-26 16:48:30 -07:00
ea.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
fsck_ffs.8
fsck.h Ensure that all allocated data structures in fsck_ffs are freed. 2021-04-02 11:58:49 -07:00
fsutil.c Make fsck_ffs more persistent in creating a lost+found directory. 2021-04-26 16:48:30 -07:00
gjournal.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
globs.c Ensure that all allocated data structures in fsck_ffs are freed. 2021-04-02 11:58:49 -07:00
inode.c Make fsck_ffs more persistent in creating a lost+found directory. 2021-04-26 16:48:30 -07:00
main.c Ensure that all allocated data structures in fsck_ffs are freed. 2021-04-02 11:58:49 -07:00
Makefile
Makefile.depend
pass1.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass1b.c Fix fsck_ffs Pass 1b error exit "bad inode number 2 to nextinode". 2021-03-24 16:53:28 -07:00
pass2.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass3.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass4.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass5.c Use proper type (ino_t) for inode numbers to avoid improper sign extention 2020-10-25 21:04:07 +00:00
setup.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
suj.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
utilities.c Remove unused includes. 2019-12-22 05:44:29 +00:00