FSAL_VFS : use appropriate flags to open files

Always using O_RDWR is not a good idea. It will be refused
even to root in some cases. Example : TXTBUSY

Signed-off-by: Simon Derr <simon.derr@bull.net>
FSAL: unify fsal2posix_openflags()

Move fsal2posix_openflags() to common code, and discard
bogus versions in the various FSALs.

Signed-off-by: Simon Derr <simon.derr@bull.net>
Ported bug fixes in cache_inode_rdwr from ibm 1.5.x branch:
File will only be closed if it was opened by this operation - also the close will only be done with a content write lock.
Also taken latency improvement, don't hold write lock during high latency operations.
Fixed bug in readlink:
If two threads try to update link content, the second won't return the link data.
Merge remote-tracking branch 'sderr/sd_push_openflags_dev15' into merge_next
Fix callback simulator requires configuration setting

It needs dbus...

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add config.h defines expected by kerberos and friends

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Get fsal dependency testing to work and disable build on failure

This really should terminate the cmake configure with errors.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix link order for ganesha.nfsd

Fixes issues with kerberos system lib runtime linkage
breakage as well as removing multiple lib passes on build

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Move backchannel to ganeshactl

Previous attempt broke.  Fixed.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove Autotools files

Autotools support is deprecated.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Move NodeDB/nodedb files

Simplify now that autotools is dead.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove the remnants of TEMPLATE fsal

Made redundant and a maintenance headache by doxygen work on fsal_api.h

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Deprecate the remnants of ganesha shell

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Track duplex-9 SVCXPRT refcounting change.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Conflicts:
	src/MainNFSD/nfs_rpc_dispatcher_thread.c
	src/MainNFSD/nfs_worker_thread.c
	src/include/ganesha_rpc.h

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Restore missing clear DECODING flag in gsh_xprt_unref.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix spacing typo.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Release xprt->xp_lock before re-arming.

At present svc_rqst_rearm_events doesn't take xprt->xp_lock, but
it does take sr_rec->mtx, which in the current order should be
taken first.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix refcnt underrun.

The root cause was a misordering of the SVC_DESTROY and (indirect)
SVC_RELEASE invocations in the decoder thread.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Pass CMAKE_C_FLAGS to TI-RPC submake.  Bump TI-RPC
Version.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>