summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryinkui <13965432176@163.com>2019-08-16 10:15:07 +0800
committerAnoop C S <anoopcs@redhat.com>2019-12-10 12:05:16 +0530
commitcc888b0bd2e8be69395393eede2b7f3f9cd893a6 (patch)
tree4b5461a8b6e8e1cffed1ef4166684745bfd63860
parent286e17ac84428f581330ae2a4b0b5912e559e795 (diff)
gluster-smb:add smb parameter when access gluster by cifs
Change-Id: I9ff54f2ca6f86bb5b2f4740485a0159e1fd7785f Fixes: bz#1781486 Signed-off-by: yinkui <13965432176@163.com>
-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}"
}