From owner-freebsd-current@FreeBSD.ORG Thu Oct 31 03:05:40 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 53C3B353 for ; Thu, 31 Oct 2013 03:05:40 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C266E2976 for ; Thu, 31 Oct 2013 03:05:39 +0000 (UTC) Received: from alph.d.allbsd.org (p4181-ipbf1307funabasi.chiba.ocn.ne.jp [123.225.173.181]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r9V35JWb088870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Oct 2013 12:05:30 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.7/8.14.5) with ESMTP id r9V35HUf020330; Thu, 31 Oct 2013 12:05:19 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 31 Oct 2013 12:05:03 +0900 (JST) Message-Id: <20131031.120503.256562970308311893.hrs@allbsd.org> To: rosti.bsd@gmail.com Subject: Re: Using a swap file From: Hiroki Sato In-Reply-To: References: X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Thu_Oct_31_12_05_03_2013_777)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Thu, 31 Oct 2013 12:05:30 +0900 (JST) X-Spam-Status: No, score=-98.6 required=13.0 tests=CONTENT_TYPE_PRESENT, FAKEDWORD_ATMARK,SPF_SOFTFAIL,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org 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: Thu, 31 Oct 2013 03:05:40 -0000 ----Security_Multipart(Thu_Oct_31_12_05_03_2013_777)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. -- Hiroki ----Security_Multipart(Thu_Oct_31_12_05_03_2013_777)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlJxyN8ACgkQTyzT2CeTzy2K8ACg2aJn3Exs2+sEDgIAHPv5vho+ z+0Anj82vmmflF0bH5QDFboRisyPtE8r =rWVP -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Oct_31_12_05_03_2013_777)----