Fix CID_67152: Self assignment  (NO_EFFECT)
Contrib: Fix compile for both <= RHEL6 and current distros

Switch Fedora 15 and later.

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Enlarge VFS_MAX_HANDLE to 48 to allow room for panfs handles

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Remove dead code in common_utils.c

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Deprecate common_utils.c

The only two functions left were only used by the handle mapping db code
in PROXY.  Move them there and get rid of the rest.

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Fix config parsing for PROXY

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Remove release_export_serializer

This really doesn't accomplish anything, go ahead and remove it.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Clean out some dead code

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Fix error message to be less alarming and more informative

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
9P: fixes bug related to op_ctx management in 9p.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Fix lock order reversal on drc recycle.

If drc's refcnt is 0, it is currently unreachable, so omit
taking drc's lock uncontested before inserting on the shared
recycle queue.

Coverity CID 30341.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Use 2 conditions in release_export_root_locked.

The intention is to allow the caller to indicate either
or both locks as held.  Don't check only for both.

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

Take socket leak fix (Coverity).

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Unexport filesystems in export release method.

An FSAL's export release method should unexport all file systems
belonging to that export. Only VFS (and XFS) FSALs seem to do this at
the momemt. The shutdown method gets SIGSEGV as we try to
call unloaded module's code below without the fix:

0  0x00007fe272594a71 in ?? ()
1  0x00000000004232bd in unclaim_fs (this=0x18fa2c0)
    at /root/nfs-ganesha/src/FSAL/commonlib.c:1260
2  0x0000000000422c20 in release_posix_file_systems ()
    at /root/nfs-ganesha/src/FSAL/commonlib.c:1199
3  0x000000000042946d in destroy_fsals ()
    at /root/nfs-ganesha/src/FSAL/fsal_destroyer.c:193
4  0x0000000000440fc5 in do_shutdown ()
    at /root/nfs-ganesha/src/MainNFSD/nfs_admin_thread.c:400
5  0x0000000000441091 in admin_thread (UnusedArg=0x0)
    at /root/nfs-ganesha/src/MainNFSD/nfs_admin_thread.c:422
6  0x000000378da07851 in start_thread () from /lib64/libpthread.so.0
7  0x000000378d6e890d in clone () from /lib64/libc.so.6

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Fix error handling in find_config_nodes parser

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
Clean up NULL checks/accesses (FSAL_CEPH).

Coverity CID 55634, 55624.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Remove unused rc and rc check.

Coverity CID 55622.

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

Take GSS fixes from Allison Henderson.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Pull up ntirpc to get fixes from Marcus

This includes a large run of plugged memory leaks.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Reorder server subsystem initialization

PROXY fsal needs this stuff running before it starts.

Signed-off-by: Jim Lieb <lieb@sea-troll.net>