Don't check minor number of dump device at all.

Discussed-with: Jörg Wunsch
This commit is contained in:
Dag-Erling Smørgrav 1998-08-23 14:18:08 +00:00
parent 4e9a89772a
commit 70d154a652
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38490
3 changed files with 3 additions and 16 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.101 1998/07/18 21:42:55 des Exp $
* $Id: autoconf.c,v 1.102 1998/07/19 11:12:14 jkh Exp $
*/
/*
@ -418,10 +418,6 @@ 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);

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
* $Id: autoconf.c,v 1.101 1998/07/18 21:42:55 des Exp $
* $Id: autoconf.c,v 1.102 1998/07/19 11:12:14 jkh Exp $
*/
/*
@ -418,10 +418,6 @@ 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);

View File

@ -36,11 +36,10 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
* $Id: kern_shutdown.c,v 1.35 1998/08/16 11:27:19 des Exp $
* $Id: kern_shutdown.c,v 1.36 1998/08/19 20:20:52 des Exp $
*/
#include "opt_ddb.h"
#include "opt_devfs.h"
#include "opt_hw_wdog.h"
#include "opt_panic.h"
#include "opt_show_busybufs.h"
@ -355,10 +354,6 @@ dumpsys(void)
return;
if (dumpdev == NODEV)
return;
#ifndef SLICE
if ((minor(dumpdev)&07) != 1)
return;
#endif /* !SLICE */
if (!(bdevsw[major(dumpdev)]))
return;
if (!(bdevsw[major(dumpdev)]->d_dump))