mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Add some error messages suggested in PR bin/138043. The code to
correct the problem was added in r176575 by delphij on 2008-02-25. PR: 138043 Reported by: Heikki Suonsivu
This commit is contained in:
parent
cf109686d0
commit
21be55cc4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201708
@ -406,7 +406,10 @@ checkfilesys(char *filesys)
|
||||
*/
|
||||
if (duplist) {
|
||||
if (preen || usedsoftdep)
|
||||
pfatal("INTERNAL ERROR: dups with -p");
|
||||
pfatal("INTERNAL ERROR: dups with %s%s%s",
|
||||
preen ? "-p" : "",
|
||||
(preen && usedsoftdep) ? " and " : "",
|
||||
usedsoftdep ? "softupdates" : "");
|
||||
printf("** Phase 1b - Rescan For More DUPS\n");
|
||||
pass1b();
|
||||
}
|
||||
|
@ -98,10 +98,16 @@ pass1(void)
|
||||
rebuildcg = 1;
|
||||
if (!rebuildcg && sblock.fs_magic == FS_UFS2_MAGIC) {
|
||||
inosused = cgrp.cg_initediblk;
|
||||
if (inosused > sblock.fs_ipg)
|
||||
if (inosused > sblock.fs_ipg) {
|
||||
pfatal("%s (%d > %d) %s %d\nReset to %d\n",
|
||||
"Too many initialized inodes", inosused,
|
||||
sblock.fs_ipg, "in cylinder group", c,
|
||||
sblock.fs_ipg);
|
||||
inosused = sblock.fs_ipg;
|
||||
} else
|
||||
}
|
||||
} else {
|
||||
inosused = sblock.fs_ipg;
|
||||
}
|
||||
if (got_siginfo) {
|
||||
printf("%s: phase 1: cyl group %d of %d (%d%%)\n",
|
||||
cdevname, c, sblock.fs_ncg,
|
||||
|
Loading…
Reference in New Issue
Block a user