summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler/test_handler_apt_source_v3.py
diff options
context:
space:
mode:
authorEduardo Otubo <otubo@redhat.com>2020-01-23 17:41:48 +0100
committerChad Smith <chad.smith@canonical.com>2020-01-23 09:41:48 -0700
commit6603706eec1c39d9d591c8ffa0ef7171b74d84d6 (patch)
tree077ae8f72347fb93c5afbb2b96af9b8b9fc1c4e5 /tests/unittests/test_handler/test_handler_apt_source_v3.py
parent18e601ada64b50e10532811e43b34cd00b6de7da (diff)
downloadvyos-cloud-init-6603706eec1c39d9d591c8ffa0ef7171b74d84d6.tar.gz
vyos-cloud-init-6603706eec1c39d9d591c8ffa0ef7171b74d84d6.zip
Do not use fallocate in swap file creation on xfs. (#70)
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. Signed-off-by: Eduardo Otubo <otubo@redhat.com> Co-authored-by: Adam Dobrawy <naczelnik@jawnosc.tk> Co-authored-by: Scott Moser <smoser@brickies.net> Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk> LP: #1781781
Diffstat (limited to 'tests/unittests/test_handler/test_handler_apt_source_v3.py')
0 files changed, 0 insertions, 0 deletions