Subject: kern/1805: "swap on nfs and sd0" configuration doesn't work
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/02/1995 16:17:39
>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
>Originator:     Matthias Drochner
	KFA Juelich
>Release:        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

	"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.
	try to use additional swapspace on a diskless machine
	(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...