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