]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap.8.adoc: update note regarding swapfile creation
authorMike Yuan <me@yhndnzj.com>
Fri, 10 May 2024 17:03:51 +0000 (01:03 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 10 May 2024 17:05:15 +0000 (01:05 +0800)
Follow-up for 7377b0d99560460806eab9efa9d8224d084c2082
(the addition of --file option)

disk-utils/mkswap.8.adoc

index 17212438a643df3c72b470edb30d83e5dde5ae1f..2aba655de4e0aca09d622dd4882af3171e3cb614 100644 (file)
@@ -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