From 12d4c7eaf1ba877bea2a5cec7efe4cf6e0a4f77b Mon Sep 17 00:00:00 2001 From: Logan V Date: Tue, 2 Aug 2016 18:01:54 -0500 Subject: [PATCH] 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 --- tests/roles/bootstrap-host/tasks/prepare_loopback_swift.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/roles/bootstrap-host/tasks/prepare_loopback_swift.yml b/tests/roles/bootstrap-host/tasks/prepare_loopback_swift.yml index e0d10ccd2f..c856cbf18f 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_loopback_swift.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_loopback_swift.yml @@ -28,6 +28,7 @@ - name: Format the Swift files filesystem: fstype: xfs + opts: '-K' dev: "/openstack/{{ item }}.img" when: swift_create | changed with_items: