From owner-freebsd-arch Mon Oct 7 14:58:42 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ECFE37B401 for ; Mon, 7 Oct 2002 14:58:41 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 559AA43E6E for ; Mon, 7 Oct 2002 14:58:41 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 371562A88D; Mon, 7 Oct 2002 14:58:41 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Terry Lambert Cc: Mikhail Teterin , arch@FreeBSD.org Subject: Re: swapon some regular file In-Reply-To: <3DA2028E.87632EE1@mindspring.com> Date: Mon, 07 Oct 2002 14:58:41 -0700 From: Peter Wemm Message-Id: <20021007215841.371562A88D@canning.wemm.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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