From fc01b0293bef8ba14650c6a52f733bb6b6b77954 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 21 Feb 2014 12:45:48 -0800 Subject: extras/hookscripts: Add `%P` as default relative root ctdb in its monitoring script looks for the "path" variable values at the system level not at share level. This relative root path, if any should be default for all volumes, to avoid issues with ctdb when doing subdirectory shares. Error: 2014/02/21 12:50:34.355754 [41083]: ERROR: samba directory "/foodir" not available Fix: Add %P in your smb.conf [gluster-foodir] ... ... path = %P/foodir ... ... Change-Id: If3c110d844ba8301c901dbce40b23cac99d6d55b BUG: 1068776 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/7147 Tested-by: Gluster Build System Reviewed-by: Jose A. Rivera Reviewed-by: Anand Avati --- extras/hook-scripts/S30samba-set.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/hook-scripts/S30samba-set.sh b/extras/hook-scripts/S30samba-set.sh index 6b11f5a4f..2fc65c278 100755 --- a/extras/hook-scripts/S30samba-set.sh +++ b/extras/hook-scripts/S30samba-set.sh @@ -65,7 +65,7 @@ function add_samba_share () { STRING+="glusterfs:volume = $volname\n" STRING+="glusterfs:logfile = /var/log/samba/glusterfs-$volname.%%M.log\n" STRING+="glusterfs:loglevel = 7\n" - STRING+="path = /\n" + STRING+="path = %%P/\n" STRING+="read only = no\n" STRING+="guest ok = yes\n" printf "$STRING" >> /etc/samba/smb.conf -- cgit