diff options
author | Raghavendra Talur <rtalur@redhat.com> | 2013-08-22 16:43:12 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-08-22 12:49:26 -0700 |
commit | 00a73eb528c39b2d6d0ee2fce83e82c1c47db619 (patch) | |
tree | fb371a6e8ed3d7c0460993149878c80e507fdf7e /extras/hook-scripts | |
parent | 498a26b0307f2050e245c8d9330ba447c792d55d (diff) |
extras/hookscripts: Add default logfile for glusterfs vfs plugin.
Glusterfs vfs plugin for samba makes call into gfapi which brings
up complete client process stack of gluster. Not having default
log file means not logging client process at all.
This patch adds default logfile and loglevel for vfs plugin.
Change-Id: Ie0fb6bbb445d6f3349fc35c713743094c0f08915
BUG: 999910
Signed-off-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-on: http://review.gluster.org/5685
Reviewed-by: Anand Avati <avati@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'extras/hook-scripts')
-rwxr-xr-x | extras/hook-scripts/S30samba-set.sh | 2 | ||||
-rwxr-xr-x | extras/hook-scripts/S30samba-start.sh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/extras/hook-scripts/S30samba-set.sh b/extras/hook-scripts/S30samba-set.sh index 33ffca3d741..87cd31c5a2a 100755 --- a/extras/hook-scripts/S30samba-set.sh +++ b/extras/hook-scripts/S30samba-set.sh @@ -63,6 +63,8 @@ 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:loglevel = 7\n" STRING+="path = /\n" STRING+="read only = no\n" STRING+="guest ok = yes\n" diff --git a/extras/hook-scripts/S30samba-start.sh b/extras/hook-scripts/S30samba-start.sh index e281c7e5464..2517f10bfb6 100755 --- a/extras/hook-scripts/S30samba-start.sh +++ b/extras/hook-scripts/S30samba-start.sh @@ -49,6 +49,8 @@ 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:loglevel = 7\n" STRING+="path = /\n" STRING+="read only = no\n" STRING+="guest ok = yes\n" |