Commit [099189]  Maximize  Restore  History

e2fsck: use root dir for lost+found when really desperate

If we're totally unable to allocate a lost+found directory, ask the
user if he would like to dump orphaned files in the root directory.
Hopefully this enables the user to delete enough files so that a
subsequent run of e2fsck will make more progress. Better to cram lost
files in the rootdir than the current behavior, which is to fail at
linking them in, thereby leaving them as lost files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

Darrick J. Wong Darrick J. Wong 2014-08-03

Theodore Ts'o Theodore Ts'o 2014-08-03

added tests/f_nospc_create_lnf
added tests/f_nospc_create_lnf/expect.1
added tests/f_nospc_create_lnf/expect.2
added tests/f_nospc_create_lnf/image.gz
added tests/f_nospc_create_lnf/name
changed e2fsck
changed e2fsck/pass3.c
changed e2fsck/problem.c
changed e2fsck/problem.h
changed tests
tests/f_nospc_create_lnf/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_nospc_create_lnf/expect.2 Diff Switch to side-by-side view
Loading...
tests/f_nospc_create_lnf/image.gz
Binary file was added.
tests/f_nospc_create_lnf/name Diff Switch to side-by-side view
Loading...
e2fsck
Directory.
e2fsck/pass3.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.h Diff Switch to side-by-side view
Loading...
tests
Directory.