diff options
author | phk <phk@FreeBSD.org> | 1994-10-22 17:53:35 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-22 17:53:35 +0000 |
commit | 12080d95a7e749a9b256193ce10bff9b8ffc0570 (patch) | |
tree | d58fdb3f104630edcad9a14ac849b9abed15469a /sys | |
parent | 2577d91fc0717cba7cf029622a5c41a022b80643 (diff) | |
download | FreeBSD-src-12080d95a7e749a9b256193ce10bff9b8ffc0570.zip FreeBSD-src-12080d95a7e749a9b256193ce10bff9b8ffc0570.tar.gz |
Contrary to my last commit here: NFS-swap is enabled automatically.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_swap.c | 16 |
1 files changed, 15 insertions, 1 deletions
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 <sys/param.h> @@ -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 |