9P: CID#23721: clunk: fix use after free

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
cache_inode: fix rename duping key after it's destroyed

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
FSAL_VFS: fix setattr to close properly as the open_and_stat ugly fix requires

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Pull fedora patch nfs-ganesha-2.0.0rc5.patch

Leave ganestat.pl even though it is dead code for now.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Pull fedora patch nfs-ganesha-2.0.0-lustre-strict.patch

This needs more rework.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge branch 'stable-2.0' into merge_next

Fedora packaging patches

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'tfb-bull/next' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'martinetd/next' into merge_next

for c9df00fe1d6a8
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Various fixes focused on xattr and system.* xattr namespace.

They are required to have usable ACLs managed via 9P
- 9P/xattr : bug fixed, assumption was made that xattr's
  value is a string. This prevented ACLs
   (content of system.posix_acl_access), which is a binary buffer,
   to be set properly.
- 9P/ACL: Hook added to deal properly with pseudo xattr "system.posix_acl_access"
- 9P/ACL: the protocol implements hooks to deal correctly with "system.posix_acl_access"
  pseudo xattr
- 9P/xattr : an ACL corner case (visible with FSAL_VFS and not FSAL_LUSTRE) was fixed.
- FSAL_VFS/xattr : code in xattrs.c has been hardened as 9P ACL support was backported
  to VFS

(cherry picked from commit 87a89e9ce74da1315c43c17db4c60bb97aad0217)
Signed-off-by: Jim Lieb <jlieb@panasas.com>
RPM: miscellaneous fixes

- adding package for XFS
- making specfile aware of RDMA support via mooshika
- typos and bad deps in specfile's template
- supports Bull macros in RPM

(cherry picked from commit a2fcd5a3f19b23677e86c203a5eff69f22045af3)
Signed-off-by: Jim Lieb <jlieb@panasas.com>
CMake : workaround (CMAKE_CURRENT_LIST_DIR does not exist on 2.6)

Done to allow compilation with cmake 2.6 on RHEL6 and earlier

(cherry picked from commit 352912494447026c7aa4e1418fcd3084a79c0304)
Signed-off-by: Jim Lieb <jlieb@panasas.com>
V2.1-dev_1

Signed-off-by: Jim Lieb <jlieb@panasas.com>
New NFS4.2 support.
Fix algorithm that checks prime numbers

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Big commit to update the FSAL_LUSTRE tree

LUSTRE/pNFS: This commit implements the support of pNFS for FSAL_LUSTTRE
CHECKPATH: work done on FSAL_LUSTRE
FSAL_LUSTRE: portability feature, do not show <lustrre_root>/.lustre
With Lustre 2.4 and higher, this object starts to behace quiet weirdly.
FSAL_LUSTRE: Fix regression (parent dir badly managed via FID) observed
in lustre > 2.4
FSAL_LUSTRE: ported to LUSTRE 2.4 and 2.5
	adding fake file lustre_errno.h to allow compilation with Lustre 2.5
FSAL_SHOOK: missing pNFS vector
FSAL_LUSTRE: a few unused/unitialised variables fixed
build: fix build to handle non-standard installation directories

This patch handles non standard installation directories for
Lustre, Mooshika and IB libraries (librdmacm, libverbs), with the
following new variables:
- LUSTRE_PREFIX
- MOOSHIKA_PREFIX
- LIBRDMACM_PREFIX
- LIBIBVERBS_PREFIX

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
MAIN: redirecting stdout, stdin and stderr to /dev/null when server is daemonized by '-d' at startup.
In particular, holding a tty was a blocking issue in Clustered environment as ganesha was started via ssh (ssh did not return properly).
Log: update log header when server is daemonized.
FSAL_LUSTRE: Fix readlinks:
 - Change size from 1024 to PATH_MAX (coherent with the rest of the code)
 - readlink one less byte so we can't overflow when writing the final \0

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
9P: CID#23140, CID#23141: buffer overrun calling getpw{nam,uid}_r

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>