diff options
Diffstat (limited to 'disk-utils/mkswap.8')
-rw-r--r-- | disk-utils/mkswap.8 | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/disk-utils/mkswap.8 b/disk-utils/mkswap.8 index 7b6a02746..e9bd9ccfa 100644 --- a/disk-utils/mkswap.8 +++ b/disk-utils/mkswap.8 @@ -130,20 +130,11 @@ e.g.\& using a command like to create 8GiB swapfile. -The swap file implementation in the kernel expects to be able to write to the file directly, -without the assistance of the filesystem. This is a problem on files with holes -(e.g. created by -.BR cp (1) -or another commands), or on files on copy-on-write filesystems like -.BR btrfs . -In some cases preallocated files (e.g. fallocate(1) on XFS) maybe interpreted -by old kernel versions as files with holes too. The most portable solution is to use -.BR dd (1) -and /dev/zero in these cases. -.sp Please read notes from .BR swapon (8) -before adding a swap file to copy-on-write filesystems. +about +.B the swap file use restrictions +(holes, preallocation and copy-on-write issues). .SH ENVIRONMENT .IP LIBBLKID_DEBUG=all |