Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA20868; Sat, 2 Dec 95 11:51:21 EST
Received: from pain.lcs.mit.edu by MIT.EDU with SMTP
	id AA19891; Sat, 2 Dec 95 11:50:14 EST
Received: (from daemon@localhost) by pain.lcs.mit.edu (8.6.12/8.6.9) id LAA22783; Sat, 2 Dec 1995 11:35:05 -0500
Received: (from gnats@localhost) by pain.lcs.mit.edu (8.6.12/8.6.9) id LAA22775; Sat, 2 Dec 1995 11:35:02 -0500
Resent-Date: Sat, 2 Dec 1995 11:35:02 -0500
Resent-Message-Id: <199512021635.LAA22775@pain.lcs.mit.edu>
Resent-From: gnats@NetBSD.ORG (GNATS Management)
Resent-To: gnats-admin@pain.lcs.mit.edu
Resent-Cc: gnats-admin@pain.lcs.mit.edu, netbsd-bugs@NetBSD.ORG
Resent-Reply-To: gnats-bugs@NetBSD.ORG, drochner@zelux6.zel.kfa-juelich.de
Received: from zelz19.zel.kfa-juelich.de by pain.lcs.mit.edu (8.6.12/8.6.9) with ESMTP id LAA22690 for <gnats-bugs@gnats.netbsd.org>; Sat, 2 Dec 1995 11:07:56 -0500
Received: (from drochner@localhost) by zelz19.zel.kfa-juelich.de (8.6.12/8.6.12) id QAA10044; Sat, 2 Dec 1995 16:17:39 +0100
Message-Id: <199512021517.QAA10044@zelz19.zel.kfa-juelich.de>
Date: Sat, 2 Dec 1995 16:17:39 +0100
From: drochner@zelux6.zel.kfa-juelich.de
Reply-To: drochner@zelux6.zel.kfa-juelich.de
To: gnats-bugs@gnats.netbsd.org
X-Send-Pr-Version: 3.95
Subject: kern/1805: "swap on nfs and sd0" configuration doesn't work
Sender: owner-netbsd-bugs@NetBSD.ORG
Precedence: list
X-Loop: netbsd-bugs@NetBSD.ORG


>Number:         1805
>Category:       kern
>Synopsis:       swapon skips swdevt entries after nfs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec  2 11:35:00 1995
>Last-Modified:
>Originator:     Matthias Drochner
>Organization:
	KFA Juelich
>Release:        1.1
>Environment:
	NetBSD-1.1
System: NetBSD zelz19 1.1 NetBSD 1.1 (MIST) #11: Fri Dec 1 19:15:50 MET 1995 root@zelz19:/usr/src/sys/arch/i386/compile/MIST i386


>Description:
	"swapon /dev/sd0b" on a kernel configured with
	"swap on nfs and sd0" returns "not configured"
	This seems to be caused by line 311 of vm_swap.c:
	sp->sw_dev is NODEV for nfs swap - the whole
	swap table is ignored.
>How-To-Repeat:
	try to use additional swapspace on a diskless machine
>Fix:
	(perhaps part of a more general solution...)
	one could simply change this condition to include
	swp->sw_vp != NULL (like in swapinit, line 127)
	or assign a pseudo device number to a nfs block device...
>Audit-Trail:
>Unformatted:
