From owner-freebsd-current@FreeBSD.ORG Mon Nov 4 17:41:27 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EEA7271E; Mon, 4 Nov 2013 17:41:27 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 661C02633; Mon, 4 Nov 2013 17:41:27 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id l18so2428083wgh.30 for ; Mon, 04 Nov 2013 09:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2Xeo3z3aH+CevMHiz3xoHbandb0s8iX/wbtgByAlx6w=; b=lHHH4xOvw9uplGDm0OtoMrzwhLfkG5OQiWSyESmSkwTDRSmGeYwflmLgbfr7ITmIoF GaQM3kbTFBB2Rc0hh5N4rOck+N5CdR1oPjYJ7QN0g8wsV8acIIfwVrxUsc1+ePZKLWWL bxXfvvsu+dB9yPcSxXEWtslxtBDWIFZVZP4M2dTKtOX1a3G4ZytMKJyawgA5xCvuYmOm 93vsKoVeG8Xz5VISAOLjeTW7YE9lnECvtVfGoQ1IgyQMdPMy4IK0bM7S9kWjl8ovvmnx to3IharEcHZZ9bFjbLT9G2JXcry/V+PlCBcDw0IKY7H3x6ucUBM+1hVZz2IzqPWsOVdb qiGg== MIME-Version: 1.0 X-Received: by 10.194.77.80 with SMTP id q16mr13994885wjw.5.1383586885573; Mon, 04 Nov 2013 09:41:25 -0800 (PST) Received: by 10.194.216.2 with HTTP; Mon, 4 Nov 2013 09:41:25 -0800 (PST) In-Reply-To: <20131031.120503.256562970308311893.hrs@allbsd.org> References: <20131031.120503.256562970308311893.hrs@allbsd.org> Date: Mon, 4 Nov 2013 19:41:25 +0200 Message-ID: Subject: Re: Using a swap file From: Rostislav Krasny To: Hiroki Sato Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2013 17:41:28 -0000 On Thu, Oct 31, 2013 at 5:05 AM, Hiroki Sato wrote: > Rostislav Krasny wrote > in : > > ro> But I have no 'late' option in my /etc/fstab: > ro> > ro> root@saturn:~ # cat /etc/fstab > ro> # Device Mountpoint FStype Options Dump Pass# > ro> /dev/ada0s2a / ufs rw 1 1 > ro> md none swap sw,file=/swapfile 0 0 > ro> > ro> Then why 'swapon -a' (without -L) doesn't work? It's either buggy or confusing. > > After r255265 the option file= implies late. It is because a > file-backed swap space likely to be on a mounted filesystem after the > "swap" line. > > I realized that that assumption was odd and confusing as you pointed > out. The user should specify a swap line with file= after the mount > entry, and there is no problem with it. I will fix it. Hope to see the fix in the upcoming 10.0 release and in the Handbook. Thank you.