summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src
Commit message (Expand)AuthorAgeFilesLines
* protocol/server: Do gf_flock to flock conversion at the right placeVijay Bellur2010-03-111-1/+2
* Add new gf_strstr dropin replacement for "strstr"Harshavardhana Ranganath2010-02-221-2/+3
* Support new option "conf-dir"Harshavardhana Ranganath2010-02-201-19/+60
* server_writev: add proper iobuf into iobrefAnand Avati2010-02-181-1/+1
* Revert "Server backend storage hang should not cause the mount point to hang."v3.0.2rc1Harshavardhana Ranganath2010-01-264-164/+14
* protocol/server: unlink dentry only for non-root inodesAnand Avati2010-01-261-2/+5
* protocol/server: cleanup whitespacesv3.0.1rc4Anand Avati2010-01-231-434/+432
* Server backend storage hang should not cause the mount point to hang.Anand Avati2010-01-234-6/+158
* protocol/server: handle group id decoding in a stricter wayAnand Avati2010-01-221-0/+3
* resolver: include RESOLVE_EXACT type for failure case when inode not foundAnand Avati2009-12-071-1/+2
* resolver: handle resolutions of pathsAnand Avati2009-12-061-2/+66
* protocol/server: more fixes in server_link_cbkAnand Avati2009-12-061-4/+4
* protocol/server: fix bad reference to @inode in server_link_cbkAnand Avati2009-12-061-1/+1
* fix crash in server protocol server-connection-destroyAmar Tumballi2009-12-051-6/+8
* protcol/server: server_connection_destroy - destroy frame after issuing flushAnand Avati2009-12-041-5/+5
* fixing some warnings on 64bit machine.Amar Tumballi2009-12-031-1/+1
* features/locks: Release all locks of an fd when a client disconnects.Pavan Vilas Sondur2009-12-031-0/+1
* protocol/server: Changes in protocol client to include lk_owner in protocol h...Pavan Vilas Sondur2009-12-031-0/+1
* core, client, server: Support auxiliary group idsShehjar Tikoo2009-12-031-0/+21
* protocol/server: enhance trace loggingAnand Avati2009-11-293-85/+206
* protocol/server: fix improper validation of fd in server_rchecksumAnand Avati2009-11-281-6/+0
* protocol/server: Introduce option trace to log requests and replies in normal...Pavan Sondur2009-11-264-6/+176
* protocol/server: Get all fops to use the new 'resolve_and_resume' path in ser...Pavan Sondur2009-11-262-277/+299
* protocol/server: Changed logging level of message on deep resolutionVijay Bellur2009-11-261-1/+1
* protocol/server: add debug messages.Raghavendra G2009-11-181-0/+12
* protocol/server: fix leak of xattrop dictionaryAnand Avati2009-10-291-1/+3
* protocol/server, mount/fuse: Handle returned inode in create properlyVikas Gorur2009-10-291-0/+19
* protocol/server: resolver fixesAnand Avati2009-10-281-5/+12
* protocol/server: touchup loc only if inode/entry resolution was successfulAnand Avati2009-10-261-2/+4
* protocol/server: fix assignment of inode number in server_readlinkAnand Avati2009-10-261-1/+1
* protocol/server: deep resolution supportAnand Avati2009-10-233-59/+188
* protocol/server: send fresh lookups on revalidate failuresAnand Avati2009-10-231-1/+23
* whitespace fixesAnand Avati2009-10-231-3105/+3105
* protocol/server: generation number and dentry resolutionAnand Avati2009-10-207-3028/+1680
* posix/client/server: Send postparent in lookup even if lookup fails on the en...Vikas Gorur2009-10-131-1/+3
* protocol/server: Set preparent and postparent in the response struct.Vikas Gorur2009-10-121-1/+17
* Changed occurrences of Z Research to Gluster.Vijay Bellur2009-10-074-4/+4
* server: Support readdirp fopShehjar Tikoo2009-10-061-0/+109
* server: NFS-friendly logic changesShehjar Tikoo2009-10-011-1/+19
* Global: NFS-friendly prototype changesShehjar Tikoo2009-10-012-40/+68
* Global: Introduce setattr and fsetattr fopsShehjar Tikoo2009-10-012-581/+254
* protocol/server: Implement rchecksum.Vikas Gorur2009-09-221-1/+80
* Changed prototype for inode_table_dump() and inode_dump().Vijay Bellur2009-09-161-1/+39
* protocol/server: server_stub_resume should check for failure of lookup when o...Raghavendra G2009-09-131-1/+2
* in server_rename if we do_path_lookup on the newloc and parent directory is n...Krishna Srinivas2009-08-191-24/+28
* TAKE2[PATCH BUG:213 1/1] Support for Process State DumpVijay Bellur2009-08-191-0/+81
* added log message when server fails to send the reply frameAmar Tumballi2009-08-171-4/+8
* server-lookup: added path info from header to log messageAmar Tumballi2009-08-041-3/+4
* logging related bug fix in server_lookup()Amar Tumballi2009-08-041-4/+3
* server-protocol: fix in server-loc-fill()Amar Tumballi2009-07-281-3/+0
" ")
case "$key" in
"user.cifs")
- enable_smb=$value
- ;;
+ enable_smb=$value
+ ;;
"user.smb")
- enable_smb=$value
- ;;
+ enable_smb=$value
+ ;;
*)
- ;;
+ ;;
esac
- done
-
- shift
- break
- ;;
+ done
+ shift
+ break
+ ;;
esac
shift
done
@@ -102,7 +106,7 @@ function del_samba_share () {
function is_volume_started () {
volname=$1
- echo "$(grep status /var/lib/glusterd/vols/"$volname"/info |\
+ echo "$(grep status $GLUSTERD_WORKDIR/vols/"$volname"/info |\
cut -d"=" -f2)"
}
diff --git a/extras/hook-scripts/set/post/S31ganesha-set.sh b/extras/hook-scripts/set/post/S31ganesha-set.sh
index 972f82c5730..b09a3942a8e 100755
--- a/extras/hook-scripts/set/post/S31ganesha-set.sh
+++ b/extras/hook-scripts/set/post/S31ganesha-set.sh
@@ -1,6 +1,6 @@
#!/bin/bash
PROGNAME="Sganesha-set"
-OPTSPEC="volname:"
+OPTSPEC="volname:,gd-workdir:"
VOL=
declare -i EXPORT_ID
GANESHA_DIR="/var/lib/glusterfs-ganesha"
@@ -11,7 +11,7 @@ gnfs="enabled"
enable_ganesha=""
host_name="none"
LOC=""
-
+GLUSTERD_WORKDIR=
function parse_args ()
@@ -21,29 +21,32 @@ function parse_args ()
while true; do
case $1 in
- --volname)
- shift
- VOL=$1
- ;;
- *)
- shift
- for pair in $@; do
+ --volname)
+ shift
+ VOL=$1
+ ;;
+ --gd-workdir)
+ shift
+ GLUSTERD_WORKDIR=$1
+ ;;
+ *)
+ shift
+ for pair in $@; do
read key value < <(echo "$pair" | tr "=" " ")
case "$key" in
- "nfs-ganesha.enable")
- enable_ganesha=$value
- ;;
- "nfs-ganesha.host")
- host_name=$value
- ;;
+ "nfs-ganesha.enable")
+ enable_ganesha=$value
+ ;;
+ "nfs-ganesha.host")
+ host_name=$value
+ ;;
*)
- ;;
+ ;;
esac
- done
-
- shift
- break
- ;;
+ done
+ shift
+ break
+ ;;
esac
shift
done
@@ -52,7 +55,7 @@ function parse_args ()
function check_if_host_set()
{
- if ! cat /var/lib/glusterd/vols/$VOL/info | grep -q "nfs-ganesha.host"
+ if ! cat $GLUSTERD_WORKDIR/vols/$VOL/info | grep -q "nfs-ganesha.host"
then
exit 1
fi
@@ -71,7 +74,7 @@ function check_nfsd_loc()
function check_gluster_nfs()
{
- if cat /var/lib/glusterd/vols/$VOL/info | grep -q "nfs.disable=ON"
+ if cat $GLUSTERD_WORKDIR/vols/$VOL/info | grep -q "nfs.disable=ON"
then
gnfs="disabled"
fi
@@ -279,5 +282,3 @@ function stop_ganesha()
fi
fi
-
-
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
index 34fde0ef8c0..43dc8e108da 100755
--- a/extras/hook-scripts/start/post/S30samba-start.sh
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
@@ -21,28 +21,33 @@
#volume.
PROGNAME="Ssamba-start"
-OPTSPEC="volname:"
+OPTSPEC="volname:,gd-workdir:"
VOL=
CONFIGFILE=
LOGFILEBASE=
PIDDIR=
+GLUSTERD_WORKDIR=
function parse_args () {
ARGS=$(getopt -l $OPTSPEC -name $PROGNAME $@)
eval set -- "$ARGS"
while true; do
- case $1 in
- --volname)
- shift
- VOL=$1
- ;;
- *)
- shift
- break
- ;;
- esac
- shift
+ case $1 in
+ --volname)
+ shift
+ VOL=$1
+ ;;
+ --gd-workdir)
+ shift
+ GLUSTERD_WORKDIR=$1
+ ;;
+ *)
+ shift
+ break
+ ;;
+ esac
+ shift
done
}
@@ -85,9 +90,9 @@ function get_smb () {
volname=$1
uservalue=
- usercifsvalue=$(grep user.cifs /var/lib/glusterd/vols/"$volname"/info |\
+ usercifsvalue=$(grep user.cifs $GLUSTERD_WORKDIR/vols/"$volname"/info |\
cut -d"=" -f2)
- usersmbvalue=$(grep user.smb /var/lib/glusterd/vols/"$volname"/info |\
+ usersmbvalue=$(grep user.smb $GLUSTERD_WORKDIR/vols/"$volname"/info |\
cut -d"=" -f2)
if [[ $usercifsvalue = "disable" || $usersmbvalue = "disable" ]]; then