mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it is now dynamic. Reviewed by: John Dyson and David Greenman Submitted by: Poul-Henning Kamp
This commit is contained in:
parent
1295400e49
commit
bd7917b1a7
@ -105,18 +105,6 @@ do_swap(fl)
|
||||
fprintf(fp, "dev_t\tdumpdev = NODEV;\t\t\t/* unconfigured */\n");
|
||||
}
|
||||
fprintf(fp, "\n");
|
||||
fprintf(fp, "struct\tswdevt swdevt[] = {\n");
|
||||
do {
|
||||
dev = swap->f_swapdev;
|
||||
fprintf(fp, "\t{ makedev(%d, 0x%08x),\t%d,\t%d },\t/* %s */\n",
|
||||
major(dev), minor(dev), swap->f_swapflag,
|
||||
swap->f_swapsize, swap->f_fn);
|
||||
swap = swap->f_next;
|
||||
} while (swap && swap->f_type == SWAPSPEC);
|
||||
fprintf(fp, "\t{ NODEV, 0, 0 },\t/* for NFS diskless */\n");
|
||||
fprintf(fp, "\t{ NODEV, 0, 0 }\n");
|
||||
fprintf(fp, "};\n\n");
|
||||
fprintf(fp, "/* Stub for when generic swap config is not used. */\n");
|
||||
fprintf(fp, "void\nsetconf()\n{\n}\n");
|
||||
fclose(fp);
|
||||
return (swap);
|
||||
|
Loading…
Reference in New Issue
Block a user