When running fsck_ffs manually, do not ask:
USE JOURNAL? [yn] when the journal timestamp does not match the filesystem mount time as we are just going to print an error and fall through to a full fsck. Instead, just run a full fsck. Requested by: Bjoern A. Zeeb (bz) MFC after: 7 days
This commit is contained in:
parent
60fe786358
commit
c094263a24
@ -423,13 +423,11 @@ checkfilesys(char *filesys)
|
|||||||
*/
|
*/
|
||||||
if ((sblock.fs_flags & FS_SUJ) == FS_SUJ) {
|
if ((sblock.fs_flags & FS_SUJ) == FS_SUJ) {
|
||||||
if ((sblock.fs_flags & FS_NEEDSFSCK) != FS_NEEDSFSCK && skipclean) {
|
if ((sblock.fs_flags & FS_NEEDSFSCK) != FS_NEEDSFSCK && skipclean) {
|
||||||
if (preen || reply("USE JOURNAL")) {
|
if (suj_check(filesys) == 0) {
|
||||||
if (suj_check(filesys) == 0) {
|
printf("\n***** FILE SYSTEM MARKED CLEAN *****\n");
|
||||||
printf("\n***** FILE SYSTEM MARKED CLEAN *****\n");
|
if (chkdoreload(mntp) == 0)
|
||||||
if (chkdoreload(mntp) == 0)
|
exit(0);
|
||||||
exit(0);
|
exit(4);
|
||||||
exit(4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
printf("** Skipping journal, falling through to full fsck\n\n");
|
printf("** Skipping journal, falling through to full fsck\n\n");
|
||||||
}
|
}
|
||||||
|
@ -2720,6 +2720,8 @@ suj_check(const char *filesys)
|
|||||||
printf("** SU+J Recovering %s\n", filesys);
|
printf("** SU+J Recovering %s\n", filesys);
|
||||||
if (suj_verifyino(jip) != 0)
|
if (suj_verifyino(jip) != 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
if (!preen && !reply("USE JOURNAL"))
|
||||||
|
return (-1);
|
||||||
/*
|
/*
|
||||||
* Build a list of journal blocks in jblocks before parsing the
|
* Build a list of journal blocks in jblocks before parsing the
|
||||||
* available journal blocks in with suj_read().
|
* available journal blocks in with suj_read().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user