Miscellaneous one-liner initializations needed to compile in Fedora's
Koji build system. Fedora and EPEL RPM builds add -Wuninitialized
-Werror to the compiler options, resulting in build failures without
these changes

Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
added a COMPONENT_NFS_MSK log component
all in a commit rebase of rdma-2 branch
call msk_destroy_trans even if the code doesn't reach...
add trans_attr.debug
fix compilation warnings
v41: refuse to create backchannel for RDMA

Conflicts:
	src/CMakeLists.txt
	src/MainNFSD/nfs_init.c
	src/include/config-h.in.cmake
	src/log/log_functions.c

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

Reformatted based on maintainer's checkpatch complaints,
without compiling or testing the result, so that original
author is blamed/credited for actual contributed code.

Reviewed-by: William Allen Simpson <bill@cohortfs.com>

make Mooshika checkpatch prettier

* replace rcs version delimiters
* move extern temporarily into libntirpc rpc/svc.h
* update libntirpc duplex-11 commit pointer

Signed-off-by: William Allen Simpson <bill@cohortfs.com>
Make MOOSHIKA and ibverbs prefixes unconditional.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
CID 75367 free the state.

Signed-off-by: Marc Eshel <eshel@us.ibm.com>
Merge remote-tracking branch 'kaleb/pull17' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
rpm: include the systemd units on RHEL7

In addition to the systemd unit, add the needed %post scripts so that
systemd gets informed about the new unit.

The parameters for ganesha.nfsd can be configured in
/etc/sysconfig/ganesha. This file already gets installed by the RPM, and
the SysV init-script uses it. The systemd unit has been updated to use
/etc/sysconfig/ganesha too.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
rpm: include the nfs-ganesha-lock systemd unit

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Acked-by: Philippe DENIEL <philippe.deniel@cea.fr>
Acked-by: Daniel Gryniewicz <dang@cohortfs.com>
FSAL_GLUSTER: Updated README and added sample gluster.conf file.

Cleaned up FSAL_GLUSTER README file and added
gluster.conf with minimum set of parameters required to 'src/config_samples'.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Acked-by: Niels de Vos <ndevos@redhat.com>
Fix log message and its level.

getpwnam_r() failure is reported as LogInfo while
getgrnam_r() failure is rported as LogMajor, reduced
its level to LogInfo. Also fixed the error message
to match the failed call, getgrnam_r()

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by:Niels de Vos <ndevos@redhat.com>
Acked-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
cache_inode_lookup should not trust cache when icreate is active.

This is exposed with a very slow FSAL create, just after file object
created but before the entry is added to cache. Client's retry create
will fail with EXIST and then lookup will fail due to parent's not
yet invalidated.

A refcnt is added to cache entry and inc before any create happens
and dec after it's added to dentry cache. trust_negative_cache should
evaluate this counter.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
spec - Revert CMake dep for now

Signed-off-by: Daniel Gryniewicz <dang@cohortfs.com>
Merge remote-tracking branch 'linuxbox2/ceph_fsal_supports' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'marc/cid-free' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'nixpanic/rpm/systemd-for-rhel7' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'skoduri/readme_new' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'ganltc/for-dev18' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'dang/spec-file' into next

Conflicts:
	src/nfs-ganesha.spec-in.cmake

Fixed a simple merge conflict.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'linuxbox2/rdma-was-rebase' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
handle empty and missing configuration file.

 + without immediately dying
 * correctly clear config_file_t to NULL
 * reduce minor parse errors from Crit to Warn
 * fix several incorrect err_types
 * gracefully return after missing sub-nodes and trees
 * for LOG block, allow empty as well as harmless!

Signed-off-by: William Allen Simpson <bill@cohortfs.com>
Acked-by: Jim Lieb <lieb@sea-troll.net>
Consolidate FSAL initiation into fsal_manager

In order to have a DS {} block with a FSAL {} block in it,
reshuffle some of the FSAL functions that were in various
files into include/fsal.h and FSAL/fsal_manager.c, as
fsal_load_init() is the only caller of load_fsal() there.

Merge name length testing into fsal_load_init().

Rename struct fsal_args to match struct subfsal_args.
Reorder struct subfsal_args to match struct fsal_args.

Signed-off-by: William Allen Simpson <bill@cohortfs.com>
Acked-by: Jim Lieb <lieb@sea-troll.net>