]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: mkswap.8: recommend fallocate(1)
authorSami Kerola <kerolasa@iki.fi>
Sat, 19 Jan 2013 00:09:06 +0000 (00:09 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 25 Jan 2013 09:15:40 +0000 (10:15 +0100)
There is no reason why fallocate(1) should not be preferred instead of
'dd if=/dev/zero of=swapfile' with it's cumbersome size spec.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.8

index 219c49f742c87bb0dc2b32a9885b3ef60b2e497a..6435dd6aee4ca88a9f756167323fa169312db2f0 100644 (file)
@@ -130,7 +130,7 @@ e.g. using a command like
 
 .nf
 .RS
-# dd if=/dev/zero of=swapfile bs=1024 count=65536
+# fallocate --length 8GiB swapfile
 .RE
 .fi