Closed riaqn closed 6 years ago
swapspace does have this method as a fallback when posix_fallocate is unavailable.
As of d329058 , you can use the --enable-no-posix-fallocate
when compiling to force fallback on the previous "fill file with zeros" method
On XFS or F2FS
fallocate
creates illegal swapfile,swapon
such file returnsinvalid arguments
.The correct method is to fill the file with zero, which is slow but works.