Date: Thu, 31 Oct 2013 12:05:03 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: rosti.bsd@gmail.com Cc: freebsd-current@FreeBSD.org Subject: Re: Using a swap file Message-ID: <20131031.120503.256562970308311893.hrs@allbsd.org> In-Reply-To: <CANt7McGTBwintkopk=hEvo5D4BvsyiFwL_-q9uzna3PwBmm1Rg@mail.gmail.com> References: <CANt7McF3otwZvy3hUh%2BY1bm_A3vLhJcKThdZy4=u6EPNXfEByA@mail.gmail.com> <CANt7McEHeY0ByUtRN1Mbm7xpxzta9xKfMyHP1mwptQbCKBK_Rw@mail.gmail.com> <CANt7McGTBwintkopk=hEvo5D4BvsyiFwL_-q9uzna3PwBmm1Rg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Thu_Oct_31_12_05_03_2013_777)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rostislav Krasny <rosti.bsd@gmail.com> wrote in <CANt7McGTBwintkopk=hEvo5D4BvsyiFwL_-q9uzna3PwBmm1Rg@mail.gmail.com>: 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)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131031.120503.256562970308311893.hrs>