Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to use dd for swapfile creation
fallocate is faster than using dd to create a thick swapfile with zeros, but it is not supported on all filesystems (specifically ext3). This commit adds a fallback to using dd if fallocate fails Closes-Bug: #1458841 Change-Id: Ie4adf625d85f84a0d89a108ef0438622ab763b9d
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters