Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Oct 2002 14:58:41 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Mikhail Teterin <mi+mx@aldan.algebra.com>, arch@FreeBSD.org
Subject:   Re: swapon some regular file 
Message-ID:  <20021007215841.371562A88D@canning.wemm.org>
In-Reply-To: <3DA2028E.87632EE1@mindspring.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> Mikhail Teterin wrote:
> > Currently, swapon(2) will only succeed if the argument vn_isdisk(9), or
> > if it is an NFS-accessed file.
> > 
> > Users wishing to swap onto a local regular file have to go through the
> > vnconfig/mdconfig gimnastics. Is that intentional?
> 
> Yes.  You have to understand that the code that does the swapping
> for NFS is different than the code that does it for devices.  Local
> swap to files is via the device pager.

Nope.  swap_pager, not device_pager.  device_pager is the glue for mmaping
character devices.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007215841.371562A88D>