From f063951d75b98406b23a7a12828b2a58a5f446bf Mon Sep 17 00:00:00 2001 From: Poornima Date: Fri, 18 Oct 2013 04:51:21 +0000 Subject: extras/hook-scripts: Enable per client logging for gluster shares served by SAMBA Edited hook scrips to add a variable in the option 'log file', which will be substituted for client IP. Change-Id: I50f143bb3114eb00afab2e1237d749804c885ca6 BUG: 1020848 Signed-off-by: Poornima Reviewed-on: http://review.gluster.org/6109 Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- extras/hook-scripts/S30samba-set.sh | 2 +- extras/hook-scripts/S30samba-start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/hook-scripts/S30samba-set.sh b/extras/hook-scripts/S30samba-set.sh index 5047660fe7d..6b11f5a4fd9 100755 --- a/extras/hook-scripts/S30samba-set.sh +++ b/extras/hook-scripts/S30samba-set.sh @@ -63,7 +63,7 @@ function add_samba_share () { STRING+="comment = For samba share of volume $volname\n" STRING+="vfs objects = glusterfs\n" STRING+="glusterfs:volume = $volname\n" - STRING+="glusterfs:logfile = /var/log/samba/glusterfs-$volname.log\n" + STRING+="glusterfs:logfile = /var/log/samba/glusterfs-$volname.%%M.log\n" STRING+="glusterfs:loglevel = 7\n" STRING+="path = /\n" STRING+="read only = no\n" diff --git a/extras/hook-scripts/S30samba-start.sh b/extras/hook-scripts/S30samba-start.sh index 9f1b20a25b0..34fde0ef8c0 100755 --- a/extras/hook-scripts/S30samba-start.sh +++ b/extras/hook-scripts/S30samba-start.sh @@ -63,7 +63,7 @@ function add_samba_share () { STRING+="comment = For samba share of volume $volname\n" STRING+="vfs objects = glusterfs\n" STRING+="glusterfs:volume = $volname\n" - STRING+="glusterfs:logfile = $LOGFILEBASE/glusterfs-$volname.log\n" + STRING+="glusterfs:logfile = $LOGFILEBASE/glusterfs-$volname.%%M.log\n" STRING+="glusterfs:loglevel = 7\n" STRING+="path = /\n" STRING+="read only = no\n" -- cgit