swapon fails to activate the swapfile since 5.7, complaining: swapon: swapfile has holes in dmesg. Same swapfile can be activated on 5.6 Filesystem is ext4, on LUKS dm-crypt
I have narrowed down this problem.
Patch: https://lore.kernel.org/linux-fsdevel/20200505183608.10280-1-yshuiv7@gmail.com/
I can confirm this solves the problem. What is it waiting for?
This has hit Arch Linux main line, see https://bugs.archlinux.org/task/66921.
I use Arch linux too. And I had created /swapfile using fallocate (for many of servers I maintain) It was working fine. But now I get same error that "swapfile has holes" I am wondering if this is kernel bug and will be fixed in next kernel? (I see there is patch for it) OR I should go and re-create /swapfile on all servers using dd? (which will need a downtime which I am trying to avoid) Thank you.
fixed https://lkml.org/lkml/2020/9/24/810