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