1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Don't automatically default dumps to be on a swap device; if the user

wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
This commit is contained in:
Garrett Wollman 1995-05-12 19:12:44 +00:00
parent 55678a2eb9
commit 5e7d9e89ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8480
2 changed files with 9 additions and 8 deletions

View File

@ -1033,12 +1033,9 @@ checksystemspec(fl)
return;
}
/*
* Default dump device and warn if place is not a
* swap area.
* Warn if dump device is not a swap area.
*/
if (fl->f_dumpdev == NODEV)
fl->f_dumpdev = swap->f_swapdev;
if (fl->f_dumpdev != swap->f_swapdev) {
if (fl->f_dumpdev != NODEV && fl->f_dumpdev != swap->f_swapdev) {
struct file_list *p = swap->f_next;
for (; p && p->f_type == SWAPSPEC; p = p->f_next)

View File

@ -97,9 +97,13 @@ do_swap(fl)
fprintf(fp, "dev_t\trootdev = makedev(%d, 0x%08x);\t\t/* %s */\n",
major(fl->f_rootdev), minor(fl->f_rootdev),
devtoname(fl->f_rootdev));
fprintf(fp, "dev_t\tdumpdev = makedev(%d, 0x%08x);\t\t/* %s */\n",
major(fl->f_dumpdev), minor(fl->f_dumpdev),
devtoname(fl->f_dumpdev));
if (fl->f_dumpdev != NODEV) {
fprintf(fp, "dev_t\tdumpdev = makedev(%d, 0x%08x);\t\t/* %s */\n",
major(fl->f_dumpdev), minor(fl->f_dumpdev),
devtoname(fl->f_dumpdev));
} else {
fprintf(fp, "dev_t\tdumpdev = NODEV;\t\t\t/* unconfigured */\n");
}
fprintf(fp, "\n");
fprintf(fp, "struct\tswdevt swdevt[] = {\n");
do {