Display the approximate space needed when a minidump fails due to lack
of space. Reviewed by: kib@ MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D20801
This commit is contained in:
parent
da4f5bdaff
commit
57f317e60a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349552
@ -448,9 +448,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
}
|
}
|
||||||
else if (error == ECANCELED)
|
else if (error == ECANCELED)
|
||||||
printf("Dump aborted\n");
|
printf("Dump aborted\n");
|
||||||
else if (error == E2BIG)
|
else if (error == E2BIG) {
|
||||||
printf("Dump failed. Partition too small.\n");
|
printf("Dump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -340,9 +340,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
|
|
||||||
if (error == ECANCELED)
|
if (error == ECANCELED)
|
||||||
printf("\nDump aborted\n");
|
printf("\nDump aborted\n");
|
||||||
else if (error == E2BIG || error == ENOSPC)
|
else if (error == E2BIG || error == ENOSPC) {
|
||||||
printf("\nDump failed. Partition too small.\n");
|
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -414,9 +414,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
}
|
}
|
||||||
else if (error == ECANCELED)
|
else if (error == ECANCELED)
|
||||||
printf("Dump aborted\n");
|
printf("Dump aborted\n");
|
||||||
else if (error == E2BIG)
|
else if (error == E2BIG) {
|
||||||
printf("Dump failed. Partition too small.\n");
|
printf("Dump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -348,9 +348,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
|
|
||||||
if (error == ECANCELED)
|
if (error == ECANCELED)
|
||||||
printf("\nDump aborted\n");
|
printf("\nDump aborted\n");
|
||||||
else if (error == E2BIG || error == ENOSPC)
|
else if (error == E2BIG || error == ENOSPC) {
|
||||||
printf("\nDump failed. Partition too small.\n");
|
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -348,9 +348,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
|
|
||||||
if (error == ECANCELED)
|
if (error == ECANCELED)
|
||||||
printf("\nDump aborted\n");
|
printf("\nDump aborted\n");
|
||||||
else if (error == E2BIG || error == ENOSPC)
|
else if (error == E2BIG || error == ENOSPC) {
|
||||||
printf("\nDump failed. Partition too small.\n");
|
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -399,9 +399,10 @@ minidumpsys(struct dumperinfo *di)
|
|||||||
}
|
}
|
||||||
else if (error == ECANCELED)
|
else if (error == ECANCELED)
|
||||||
printf("Dump aborted\n");
|
printf("Dump aborted\n");
|
||||||
else if (error == E2BIG)
|
else if (error == E2BIG) {
|
||||||
printf("Dump failed. Partition too small.\n");
|
printf("Dump failed. Partition too small (about %lluMB were "
|
||||||
else
|
"needed this time).\n", (long long)dumpsize >> 20);
|
||||||
|
} else
|
||||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user