summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authoryinkui <13965432176@163.com>2019-08-16 10:15:07 +0800
committerAmar Tumballi <amarts@gmail.com>2019-08-21 13:59:19 +0000
commitb960e0103a70b58880b59438b116740af98a4582 (patch)
tree1aed62593b9e338aada09acaf3b0060ee1c3ae4c /extras
parentfb976636d9ffa3be4d2a47c604a7746be06e2247 (diff)
gluster-smb:add smb parameter when access gluster by cifs
Change-Id: I9ff54f2ca6f86bb5b2f4740485a0159e1fd7785f Fixes: bz#1741734 Signed-off-by: yinkui <13965432176@163.com>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/hook-scripts/set/post/S30samba-set.sh1
-rwxr-xr-xextras/hook-scripts/start/post/S30samba-start.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/extras/hook-scripts/set/post/S30samba-set.sh b/extras/hook-scripts/set/post/S30samba-set.sh
index d2a62d38026..e73f00f321c 100755
--- a/extras/hook-scripts/set/post/S30samba-set.sh
+++ b/extras/hook-scripts/set/post/S30samba-set.sh
@@ -90,6 +90,7 @@ function add_samba_share () {
STRING+="path = /\n"
STRING+="read only = no\n"
STRING+="guest ok = yes\n"
+ STRING+="kernel share modes = no\n"
printf "$STRING" >> ${CONFIGFILE}
}
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
index 2854bddfe90..0d5a5edd4af 100755
--- a/extras/hook-scripts/start/post/S30samba-start.sh
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
@@ -89,6 +89,7 @@ function add_samba_share () {
STRING+="path = /\n"
STRING+="read only = no\n"
STRING+="guest ok = yes\n"
+ STRING+="kernel share modes = no\n"
printf "$STRING" >> "${CONFIGFILE}"
}