Retry blocking lock if not granted.
FSAL API: refcount is used as a signed int32, fix its type

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Merge remote-tracking branch 'marc/relock' into next

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

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add new glist_insert_sorted function to ganesha_list.h

This function uses a comparer routine to insert an element
into a sorted list

Signed-off-by: Allison Henderson <achender@vnet.linux.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Jim Lieb <lieb@sea-troll.net>
Added a dbus broadcast service to the dbus thread
Other threads my add function callbacks to be invoked
by this service

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Signed-off-by: Allison Henderson <achender@vnet.linux.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Jim Lieb <lieb@sea-troll.net>
Added new heartbeat message to dbus broadcast service

Added new configs to enable heartbeat and set interval
Also make the new heartbeat an introspective dbus signal

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Signed-off-by: Allison Henderson <achender@vnet.linux.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Jim Lieb <lieb@sea-troll.net>
Fix usage of PATH_MAX

PATH_MAX includes the NUL byte. So any definition of the form
"char path[MAX_PATH+1]" is incorrect! It should just be "char
path[PATH_MAX]". Changed such definitions!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add support to dbus interface for reporting delegation stats.

Format Corrections for check patch:
Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Consolidated glib dbus python scripts.

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Added export_revert

which will be called when export_commit failed to clean up the following
 - node added to export_by_id avl tree
 - export added to exportlist
 - exp_work list element to mount_work list

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Check for export refcount before freeing export_stats

check for refcnt in free_export() before proceeding as it might have been
freed by put_gsh_export.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Add internal error to config_error_type

And use it for cache_inode layer errors

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Display proper error on export stanza path errors

init_export_root checks for the export stanza path but the final error
displayed is (resource alloc) errors but it must be invalid param value.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Reviewed-by: Malahal Naineni <malahal@us.ibm.com>
Simple format correction

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'ganltc/for-V2.2-dev-11' into next

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

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add an export option do disallow readdir plus.

Signed-off-by: Marc Eshel <eshel@us.ibm.com>
systemd: require rpcbind and start rpc.statd

Without rpcbind, ganesha.nfsd fails to start with:

    Register_program :DISP :FATAL :Cannot register NFS V3 on UDP

This change also includes a new systemd-unit for starting rpc.statd. When the
new nfs-ganesha-lock.service is started, the original nfs-lock.service is
stopped (if started), and the kernel lockd module unregisters the nlockmgr
program from the portmapper.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Fixed build issue related to glib dbus python script consolidation

Patch e2dd540d132f8a16c01c9ba210d9eac5b833c35e introduced a small regression
regarding build process (removing old files). This simple patch allows to build
Ganesha with admin tools support without errors.

Signed-off-by: Thomas Favre-Bulle <thomas.favre-bulle@bull.net>