summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-07-18 21:42:55 +0000
committerdes <des@FreeBSD.org>1998-07-18 21:42:55 +0000
commit88f64384b3c27db23da27938d6b183177847abd1 (patch)
tree7da9f5d6b80125ae4a655c78cc89b24bc12cfcb1 /sys/amd64
parent43d214a191c444eb5cf3a55c80145172e475f9bf (diff)
downloadFreeBSD-src-88f64384b3c27db23da27938d6b183177847abd1.zip
FreeBSD-src-88f64384b3c27db23da27938d6b183177847abd1.tar.gz
Allow dump devices with dkpart != SWAP_PART on devfs/slice
systems. This test should probably be removed altogether. See CVS log entries for revisions 1.97 and 1.98.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/autoconf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c
index 9ade6d1..52c7c48 100644
--- a/sys/amd64/amd64/autoconf.c
+++ b/sys/amd64/amd64/autoconf.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
- * $Id: autoconf.c,v 1.99 1998/06/30 03:01:33 jmg Exp $
+ * $Id: autoconf.c,v 1.100 1998/07/04 22:30:15 julian Exp $
*/
/*
@@ -400,6 +400,7 @@ setdumpdev(dev)
long newdumplo;
if (dev == NODEV) {
+B
dumpdev = dev;
return (0);
}
@@ -418,8 +419,10 @@ setdumpdev(dev)
* and nuke dodump sysctl (too many knobs), and move this to
* kern_shutdown.c...
*/
+#ifndef SLICE
if (dkpart(dev) != SWAP_PART)
return (ENODEV);
+#endif /* !SLICE */
newdumplo = psize - Maxmem * PAGE_SIZE / DEV_BSIZE;
if (newdumplo < 0)
return (ENOSPC);
OpenPOWER on IntegriCloud