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