summaryrefslogtreecommitdiff
path: root/e2fsck/pass3.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2014-08-10 18:21:15 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-08-10 18:21:15 -0400
commitd5da89e868cd7b32801ae8f5322e13d373ab7060 (patch)
treec14deeedd2c02a854e928dfc5c07fc2b6c2e63ea /e2fsck/pass3.c
parent0165cfadfaf3286072dc635100b2e9bbfdcad137 (diff)
downloade2fsprogs-d5da89e868cd7b32801ae8f5322e13d373ab7060.tar.gz
e2fsck: convert 'delete files' warning to a proper fix_problem error
In pass 3, convert the "delete files and re-run e2fsck" message to a proper error code for more consistent error reporting and to make translation easier. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r--e2fsck/pass3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c
index 0b029613..63b1d701 100644
--- a/e2fsck/pass3.c
+++ b/e2fsck/pass3.c
@@ -452,7 +452,7 @@ unlink:
retval = ext2fs_new_block2(fs, 0, ctx->block_found_map, &blk);
if (retval == EXT2_ET_BLOCK_ALLOC_FAIL &&
fix_problem(ctx, PR_3_LPF_NO_SPACE, &pctx)) {
- printf("Delete some files and re-run e2fsck.\n\n");
+ fix_problem(ctx, PR_3_NO_SPACE_TO_RECOVER, &pctx);
ctx->lost_and_found = EXT2_ROOT_INO;
return 0;
}
@@ -472,7 +472,7 @@ skip_new_block:
ctx->inode_used_map, &ino);
if (retval == EXT2_ET_INODE_ALLOC_FAIL &&
fix_problem(ctx, PR_3_LPF_NO_SPACE, &pctx)) {
- printf("Delete some files and re-run e2fsck.\n\n");
+ fix_problem(ctx, PR_3_NO_SPACE_TO_RECOVER, &pctx);
ctx->lost_and_found = EXT2_ROOT_INO;
return 0;
}