14f8ab
From 6895b6c67e9c29af3f966b4d9ee5cb40da763d24 Mon Sep 17 00:00:00 2001
14f8ab
From: Mohit Agrawal <moagrawa@redhat.com>
14f8ab
Date: Wed, 14 Apr 2021 12:38:45 +0530
14f8ab
Subject: [PATCH 540/540] extras: Disable write-behind for group samba.
14f8ab
14f8ab
when write-behind is enabled with Samba it could be a
14f8ab
source of data corruption. The translator, while
14f8ab
processing a write call, immediately returns success but continues
14f8ab
writing the data to the server in the background. This can cause data
14f8ab
corruption when two clients relying on Samba to provide data consistency
14f8ab
are operating on the same file.
14f8ab
14f8ab
> fixes: https://github.com/gluster/glusterfs/issues/2329
14f8ab
14f8ab
Change-Id: I5265056ff315a5f3cd97ea11b18db0831b1b901d
14f8ab
Solution: Disable write-behind for samba group
14f8ab
BUG: 1948547
14f8ab
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/235876
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 extras/group-samba | 1 +
14f8ab
 1 file changed, 1 insertion(+)
14f8ab
14f8ab
diff --git a/extras/group-samba b/extras/group-samba
14f8ab
index eeee6e0..9611a1f 100644
14f8ab
--- a/extras/group-samba
14f8ab
+++ b/extras/group-samba
14f8ab
@@ -9,3 +9,4 @@ performance.nl-cache=on
14f8ab
 performance.nl-cache-timeout=600
14f8ab
 performance.readdir-ahead=on
14f8ab
 performance.parallel-readdir=on
14f8ab
+performance.write-behind=off
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab