From 7b4e937c862ea84e1568b01cd5ec69918920f9a5 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 11 May 2024 01:03:51 +0800 Subject: [PATCH] mkswap.8.adoc: update note regarding swapfile creation Follow-up for 7377b0d99560460806eab9efa9d8224d084c2082 (the addition of --file option) --- disk-utils/mkswap.8.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk-utils/mkswap.8.adoc b/disk-utils/mkswap.8.adoc index 17212438a..2aba655de 100644 --- a/disk-utils/mkswap.8.adoc +++ b/disk-utils/mkswap.8.adoc @@ -112,7 +112,7 @@ Presently, Linux allows 32 swap areas. The areas in use can be seen in the file If you don't know the page size that your machine uses, you can look it up with *getconf PAGESIZE*. -To set up a swap file, it is necessary to create that file before initializing it with *mkswap*, e.g. using a command like +Aside from *mkswap --file*, it is also possible to create the swapfile manually before initializing it with *mkswap*, e.g. using a command like .... # dd if=/dev/zero of=swapfile bs=1MiB count=$((8*1024)) @@ -120,7 +120,7 @@ To set up a swap file, it is necessary to create that file before initializing i to create 8GiB swapfile. -Please read notes from *swapon*(8) about *the swap file use restrictions* (holes, preallocation and copy-on-write issues). +In such a case, please read notes from *swapon*(8) about *the swap file use restrictions* (holes, preallocation and copy-on-write issues). == SEE ALSO -- 2.47.3