diff options
author | Sami Kerola | 2013-01-19 01:09:06 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-25 10:15:40 +0100 |
commit | f31adc8f76e17050e7f9b28f72591d8cdf65b478 (patch) | |
tree | d65e938d19ba8a56cdfbbe3d0fa4ceda03b74193 /disk-utils | |
parent | tests: add fallocate(1) check (diff) | |
download | kernel-qcow2-util-linux-f31adc8f76e17050e7f9b28f72591d8cdf65b478.tar.gz kernel-qcow2-util-linux-f31adc8f76e17050e7f9b28f72591d8cdf65b478.tar.xz kernel-qcow2-util-linux-f31adc8f76e17050e7f9b28f72591d8cdf65b478.zip |
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 <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/mkswap.8 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/mkswap.8 b/disk-utils/mkswap.8 index 219c49f74..6435dd6ae 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 |