From: Sami Kerola Date: Sat, 19 Jan 2013 00:09:06 +0000 (+0000) Subject: docs: mkswap.8: recommend fallocate(1) X-Git-Tag: v2.23-rc1~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31adc8f76e17050e7f9b28f72591d8cdf65b478;p=thirdparty%2Futil-linux.git docs: mkswap.8: recommend fallocate(1) 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 Signed-off-by: Karel Zak --- diff --git a/disk-utils/mkswap.8 b/disk-utils/mkswap.8 index 219c49f742..6435dd6aee 100644 --- a/disk-utils/mkswap.8 +++ b/disk-utils/mkswap.8 @@ -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