Do not discard when creating XFS loopback

When creating XFS filesystems the default mkfs behavior is to discard
all blocks in the filesystem. This is not necessary during AIO and
disabling it with the -K option will optimize execution time on
certain storage mediums.

Change-Id: Idddf89047a5efa9b4df301c731f67636976cf70e
This commit is contained in:
Logan V 2016-08-02 18:01:54 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 4dad6177ec
commit 12d4c7eaf1

View File

@ -28,6 +28,7 @@
- name: Format the Swift files
filesystem:
fstype: xfs
opts: '-K'
dev: "/openstack/{{ item }}.img"
when: swift_create | changed
with_items: