9ae3f9
From 0769c5ddc78ea37b9a43ac35dd71ec8cea4b8da8 Mon Sep 17 00:00:00 2001
9ae3f9
From: yinkui <13965432176@163.com>
9ae3f9
Date: Fri, 16 Aug 2019 10:15:07 +0800
9ae3f9
Subject: [PATCH 412/449] gluster-smb:add smb parameter when access gluster by
9ae3f9
 cifs
9ae3f9
9ae3f9
Backport of https://review.gluster.org/23240
9ae3f9
9ae3f9
Change-Id: I9ff54f2ca6f86bb5b2f4740485a0159e1fd7785f
9ae3f9
BUG: 1783232
9ae3f9
Signed-off-by: yinkui <13965432176@163.com>
9ae3f9
Reviewed-on: https://code.engineering.redhat.com/gerrit/202472
9ae3f9
Tested-by: RHGS Build Bot <nigelb@redhat.com>
9ae3f9
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
9ae3f9
---
9ae3f9
 extras/hook-scripts/set/post/S30samba-set.sh     | 1 +
9ae3f9
 extras/hook-scripts/start/post/S30samba-start.sh | 1 +
9ae3f9
 2 files changed, 2 insertions(+)
9ae3f9
9ae3f9
diff --git a/extras/hook-scripts/set/post/S30samba-set.sh b/extras/hook-scripts/set/post/S30samba-set.sh
9ae3f9
index d2a62d3..e73f00f 100755
9ae3f9
--- a/extras/hook-scripts/set/post/S30samba-set.sh
9ae3f9
+++ b/extras/hook-scripts/set/post/S30samba-set.sh
9ae3f9
@@ -90,6 +90,7 @@ function add_samba_share () {
9ae3f9
         STRING+="path = /\n"
9ae3f9
         STRING+="read only = no\n"
9ae3f9
         STRING+="guest ok = yes\n"
9ae3f9
+        STRING+="kernel share modes = no\n"
9ae3f9
         printf "$STRING"  >> ${CONFIGFILE}
9ae3f9
 }
9ae3f9
 
9ae3f9
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
9ae3f9
index 2854bdd..0d5a5ed 100755
9ae3f9
--- a/extras/hook-scripts/start/post/S30samba-start.sh
9ae3f9
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
9ae3f9
@@ -89,6 +89,7 @@ function add_samba_share () {
9ae3f9
         STRING+="path = /\n"
9ae3f9
         STRING+="read only = no\n"
9ae3f9
         STRING+="guest ok = yes\n"
9ae3f9
+        STRING+="kernel share modes = no\n"
9ae3f9
         printf "$STRING"  >> "${CONFIGFILE}"
9ae3f9
 }
9ae3f9
 
9ae3f9
-- 
9ae3f9
1.8.3.1
9ae3f9