← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~adobrawy/cloud-init:swap-linux into cloud-init:master

 

The proposal to merge ~adobrawy/cloud-init:swap-linux into cloud-init:master has been updated.

Commit message changed to:

Do not use fallocate in swap file creation on xfs.

When creating a swap file on an xfs filesystem, fallocate cannot be used.
Doing so results in failure of swapon and a message like:
 swapon: swapfile has holes

The solution here is to maintain a list (currently containing only XFS)
of filesystems where fallocate cannot be used.  The, on those fileystems
use the slower but functional 'dd' method.

For more details, see:
https://code.launchpad.net/~adobrawy/cloud-init/+git/cloud-init/+merge/354680
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~adobrawy/cloud-init:swap-linux into cloud-init:master.


References