From 12080d95a7e749a9b256193ce10bff9b8ffc0570 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 22 Oct 1994 17:53:35 +0000 Subject: Contrary to my last commit here: NFS-swap is enabled automatically. --- sys/vm/vm_swap.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index f3c161b..e1965bc 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 - * $Id: vm_swap.c,v 1.9 1994/10/21 03:17:11 phk Exp $ + * $Id: vm_swap.c,v 1.10 1994/10/22 02:41:19 davidg Exp $ */ #include @@ -142,6 +142,20 @@ swapinit() */ if (nswap == 0) printf("WARNING: no swap space found\n"); + for (swp = swdevt; ;swp++) { + if (swp->sw_dev == NODEV) { + if (swp->sw_vp == NULL) + break; + + /* We DO enable NFS swapspaces */ + error = swfree(p, swp - swdevt); + if (error) { + printf( + "Couldn't enable swapspace %d, error = %d", + swp-swdevt,error); + } + } + } } void -- cgit v1.1