mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
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)
|
||||
printf("Dump aborted\n");
|
||||
else if (error == E2BIG)
|
||||
printf("Dump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG) {
|
||||
printf("Dump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
@ -340,9 +340,10 @@ fail:
|
||||
|
||||
if (error == ECANCELED)
|
||||
printf("\nDump aborted\n");
|
||||
else if (error == E2BIG || error == ENOSPC)
|
||||
printf("\nDump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG || error == ENOSPC) {
|
||||
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
@ -414,9 +414,10 @@ fail:
|
||||
}
|
||||
else if (error == ECANCELED)
|
||||
printf("Dump aborted\n");
|
||||
else if (error == E2BIG)
|
||||
printf("Dump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG) {
|
||||
printf("Dump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
@ -348,9 +348,10 @@ minidumpsys(struct dumperinfo *di)
|
||||
|
||||
if (error == ECANCELED)
|
||||
printf("\nDump aborted\n");
|
||||
else if (error == E2BIG || error == ENOSPC)
|
||||
printf("\nDump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG || error == ENOSPC) {
|
||||
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
@ -348,9 +348,10 @@ fail:
|
||||
|
||||
if (error == ECANCELED)
|
||||
printf("\nDump aborted\n");
|
||||
else if (error == E2BIG || error == ENOSPC)
|
||||
printf("\nDump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG || error == ENOSPC) {
|
||||
printf("\nDump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
@ -399,9 +399,10 @@ fail:
|
||||
}
|
||||
else if (error == ECANCELED)
|
||||
printf("Dump aborted\n");
|
||||
else if (error == E2BIG)
|
||||
printf("Dump failed. Partition too small.\n");
|
||||
else
|
||||
else if (error == E2BIG) {
|
||||
printf("Dump failed. Partition too small (about %lluMB were "
|
||||
"needed this time).\n", (long long)dumpsize >> 20);
|
||||
} else
|
||||
printf("** DUMP FAILED (ERROR %d) **\n", error);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user