FSAL_GLUSTER: Taken care of checkpatch errors in the files

  FSAL_GLUSTER/export.c
  FSAL_GLUSTER/gluster_internal.c
  FSAL_GLUSTER/gluster_internal.h

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
FSAL_GLUSTER: cleanedup checkpatch errors for the files
  FSAL_GLUSTER/handle.c
  FSAL_GLUSTER/main.c
Signed-off-by: Meghana Madhusudhan <mmadhusu@redhat.com>
FSAL_GLUSTER: Fixed few checkpatch warnings in the file
        FSAL_GLUSTER/gluster_internal.c

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Put claim delegation checks in a separate function

Take claim delegation checks from nfs4_op_open(), and create a new
function open4_claim_deleg(). No functional change.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Trivial changes in open4_claim_deleg()

Removed utfname validation checks as nfs4_utf8string2dynamic does the
same. glist_entry() never returns NULL, so removed that check!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix a logDebug accessing incorrect utf8string with CLAIM_DELEGATE_PREV

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fail requests with bad stateid in CLAIM_DELEGATE_CUR claim type

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Check for still-stalled after retaking stallq mtx.

There is not actually a race to unstall xprt, since a single event
channel thread currently decodes requests for xprt.  Nevertheless, the
extra check is cheap and improves the safety of future dispatch code.

Coverity CID 63931.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Merge remote-tracking branch 'linuxbox2/next' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Cleanup a checkpatch.pl error in SAL/nfs4_recovery.c

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Cleanup a checkpatch.pl problem in FSAL/FSAL_GLUSTER/gluster_internal.h

The following code structure trips a bug in checkpatch.pl:

The fix is to restructure the macro:

	do { \

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Remove unused libgssglue from rpm spec

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge branch 'malahal-patches-from-ganltc' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
V2.2-dev-4

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
pNFS/LUSTRE: invalidate attrs on close (force DS/MDS coherency)

/!\ This commit is for internal use only, it should be kept in next and never placed in a pull request

Change-Id: Icc0b221943efe85cc5f3e60dd160bd737ab0f9ed
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
FSAL_LUSTRE: builds FSAL_SHOOK with name "SHOOK"

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
9P: fixes bug #1125830 and make it possible to mount sub-directory via 9p

This bug makes it possible for 9p to mount a sub-directory of an exported directory.
For example, if "/foo" is exported, you now can mount "/foo/bar".
It fixes bug #1125830 too by returning correct error when trying to mount non-existing
directories or non-accessible directories.
The TATTACH message now works like the MOUNTPROC3_MOUONT RPC Call.

Change-Id: I92594dca93dc8e44dfc2f05f28329014d76df4d5
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
FSAL_ZFS: make FSAL_ZFS compliant with new config parsing.

Change-Id: I227d7269ce5504a2519d1e2cb8a7fa2f8f79f358
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Port to Lustre 2.6, is compatible with Lustre 2.1, 2.4 and 2.5

FSAL_LUSTRE is accessing LUSTRE via the "fid path" way. Every accessed object is associated with a fid (similar to a NFS FH in some ways).
For every object, a special and immutable path can be build to access the object. This path is "<mount point>/.lustre/fids/<object's fid>".
When trying to lookup parent from <mntpoint>/.lustre/fid the standard POSIX API points to <mntpoint>/.lustre/fid, making this special
directory the parent of every object.
To deal with that, FSAL_LUSTRE embeds a very small piece of Lustre kernel code to compute the paren correctly with proper consideration
of the filestsyem trees. The related code is located in src/FSAL/FSAL_LUSTRE/lustre_extended_types.h .
From version 2.4 to 2.6, the required code to embed has change, but with backward compatibilty.
This commits updates the embedded piece of code and makes it compatible with very version of Lustre 2.x from 2.1 to 2.6 .

Change-Id: I8680d27cbf155f6e0c5b3115fb1b276742fb4aed
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>