From b06fb9b008d96d3f02f4166ac3175b8f61c551a6 Mon Sep 17 00:00:00 2001
From: Emmanuel Cohen <atmaniak@gmail.com>
Date: Tue, 11 Aug 2020 09:31:31 +0200
Subject: [PATCH] Use -Jblock64 for ocfs2

---
 roles/ceph-rbd/tasks/main.yml | 1 +
 roles/ocfs2/tasks/main.yml    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/roles/ceph-rbd/tasks/main.yml b/roles/ceph-rbd/tasks/main.yml
index 260a8ae0..2a28e869 100644
--- a/roles/ceph-rbd/tasks/main.yml
+++ b/roles/ceph-rbd/tasks/main.yml
@@ -23,6 +23,7 @@
   changed_when: ceph_check_image.stdout != ceph_image_name
   command:
     cmd: rbd -n client.{{ ceph_login }} list {{ ceph_pool_name }}
+  ignore_errors: yes
 
 - name: create rbd image
   when:
diff --git a/roles/ocfs2/tasks/main.yml b/roles/ocfs2/tasks/main.yml
index 7791cab5..e1828eb6 100644
--- a/roles/ocfs2/tasks/main.yml
+++ b/roles/ocfs2/tasks/main.yml
@@ -26,7 +26,7 @@
   when: inventory_hostname == play_hosts[0]
   filesystem:
     fstype: ocfs2
-    opts: -T mail
+    opts: -T mail -Jblock64
     dev: /dev/rbd0
 
 - name: mount mapped device
-- 
GitLab