Clean up some export cruft

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Review comment fix earlier checkin
- Fix return code error in ptfsal_open()
- Added a check in the terminate routine to check for
  whether a handle is in_use before closing it.

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
This is to remap the following FSI_XXX trace level to ganesha
NIV_XXX level

- FSI_FATAL -> NIV_MAJ
- FSI_ERR   -> NIV_CRIT

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
Add the return code checking and handling from function
fsi_get_name_from_handle inside function ptfsal_open_by_handle,
so to avoid the following ccl_open on empty file name.
Also add the file name length checking before call ccl_open,
so to avoid ccl_open on empty file name.
Change log level from FSI_NOTICE to FSI_DEBUG in function
ptfsal_set_fsi_handle_data to prevent from creating huge log in Ganesha.

v1->v2
Rebased to latest code to correct merge conflicts

Signed-off-by: Jeff Huang <huangz@us.ibm.com>
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
PT drop 7

Updated dist version for next PT drop

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Fix nfs-ganesha.pt.init script to look for PID instead of
using pidof.  By using pidof, the sript wait loop mistakenly
detected ganesha was still alive after it's killed.  But the
instance that pidof detected was indeed a new instance that
the PT watchdog restarted.  So instead of using pidof, this
fix will look at the real PID and detect the presence of that
PID.

QC# 19090

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
PT drop 8

Updated dist version for next PT drop

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Code review comment fix for commit
c01e7cc844686b7be868bc279f8938291f74bb0c

- Removed redudant wait loop for ganesha to exit

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
Git side of fix 81022384 for defect 18677.  Improved performance
for 'ls' command in NFS (readdir) via utilizing new
"stat_by_handle" funciton.

v1 -> v2
Rebased to latest code branch to resolve merge conflicts

Signed-off-by: Matthew G Cleveland <mgclevel@us.ibm.com>
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Fixed memleak due to missing closedir.
Disable Symlink Support

PT is not going to support symlinks, so we need to turn
this config off.

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Some clients like Solaris and AIX tries to set gid=0 on root squashed
creates. Ignore those requests.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
This fix will close all opened handle upon ganesha shutdown by
sending out messages to the server without requiring a response.

During ganesha termination, one thread per opened handle will
be created to initiate close (by calling ccl_close) in parallel.
As soon as messages are sent, the threads will exit.

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
Don't cache idempotent requests

If a request is marked as idempotent then there is no
need to add it to DRC - this saves a lot of work
on read-mostly workloads.

Signed-off-by: Max Matveev <makc@gmx.co.uk>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Move DRC management to nfs_rpc_execute

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
PT drop 9

Updated dist version for next PT drop

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Restructures .so files and fixes all compile-time warnings
in CCL code.
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Sync'ing fsi_ipc_ccl.h and fsi_ipc_common.h with PT server build

- Added CCL_MAX_CLOSING_TO_CLOSE_POLLING_COUNT to fsi_ipc_ccl.h
- Added CCL_CLOSING to fsi_ipc_common.h

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
PT drop 10

Updated dist version for next PT drop

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
To make it compile

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>