> > On my boxes with swap files, kernel 5.7.0 barfs; > > # file /swapfile > /swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size > 2097151 pages, no label > # swapon -a > swapon: /swapfile: swapon failed: Invalid argument > > I havent looked into it yet as they're rarely used at all. What kernel are > you using? >
FYI this issue is due to fallocate creating files with holes (found via dmesg | grep -i swap). Once I recreated the files with dd if=/dev/zero they were good.