Bug 92

Summary: Pageout panics with NFS root + local swap
Product: Base System Reporter: Gene Stark <starkhome+gene>
Component: kernAssignee: FreeBSD Core Team <core>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Gene Stark 1995-01-01 07:00:01 UTC
	When booting diskless with NFS root, but no NFS swap area
	specified (local swap desired), the system panics as soon as
	pageout is attempted.

Fix: If nd->swap_nblks is zero in nfs_mountroot(), then the system
	comes up without initializing swapdev_vp to an actual vnode pointer.
	The swap pager assumes a non-NULL value for swapdev_vp.

	The fix is to try initializing local swap if no NFS swap space
	is specified.
How-To-Repeat: 
	Boot diskless with NFS root, but no NFS swap space specified.
	Then run "man csh" or similarly large job causing pageout.
	The system will panic in the swap pager.