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