Fix up valgrind memcheck after GPFS handle key was changed

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Fix return code from cache_inode_commit

Normally somehow this doesn't cause a problem, but under certain
memory situations, the problem was exposed. Fix is clear from
code inspection...

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Adding back svc_destroy when svc_sendreply fails, also picking up the xprt refcount fix in tirpc.

Signed-off-by: rong zeng <rongzeng@us.ibm.com>
This is version 2 of branch fix "PTFSAL_Close_Handle_Config_parm" which added
New PTFSAL paramter for Poller handle close to the ganehsa.conf file
under existing "PTFS" clause (block).  Parameter is: "Internal_Handle_Timeout_Sec"

This version (2) handles branch merge conflicts with other fixes and consists of
original changes applied to branch "ibm_next_pt4.1_merge" per Allison

Signed-off-by: Doug Dewey <ddewey@us.ibm.com>
FSAL changes for fix 81024083
This is to increase NFS read to 1MB
Signed-off-by: Hin C Lam <hincheuk@us.ibm.com>
Added front end cache table to handle name_from_handle()
translation.

Signed-off-by: Matthew Cleveland <mgclevel@us.ibm.com>
Added header file statement to Makefile.am

Signed-off-by: Matthew Cleveland <mgclevel@us.ibm.com>
Release change for 4.1 rev 3
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Fixed undefined symbol bug
merged pt_util_cache.[ch] into pt_ganesha.[ch]

Signed-off-by: Hin C Lam <hincheuk@us.ibm.com>
This branch requires the syren fix 81024127.
This fix improved mutex implementation, using handle mutex for serializing
each stream, instead of using gobal mutex for serializing all streams:
renamed the g_fsi_name_handle_mutex to g_fsi_cache_handle_mutex,
renamed g_handle_mutex to g_file_mutex, deleted g_transid_mutex
replaced g_io_mutex with g_io_handle_mutex[] or g_io_operation_mutex[],
added g_dir_handle_mutex[], moved all mutex related to CCL to CCL,
replaced g_close_mutex[] with g_io_handle_mutex[], added g_io_operation_mutex[]
for serializing multiple readers on same handle.

Added version checking in pt fsal initialization, Ganesha will not be started if
the CCL version in pt fsal side is not same as the CCL version in CCL side.

fsi_ipc_common.h changed.

Signed-off-by: huangz <huangz@us.ibm.com>
Merge remote-tracking branch 'remotes/huangz-github/PT_MutexFix_81024127' into ibm_next_pt

Conflicts:
	src/FSAL/FSAL_PT/fsal_close_listener.c
	src/FSAL/FSAL_PT/fsal_init.c
	src/FSAL/FSAL_PT/fsi_ipc_ccl.h
	src/FSAL/FSAL_PT/pt_ganesha.h
Fixed some compilation issues

Signed-off-by: Hin C Lam <hincheuk@us.ibm.com>
Make generic ACL code and GPFS ACL code same so GPFS can use generic

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Allow root execute permission if someone is allowed execute

For mode check, test is simple.

For ACL check, if we are looking for execute permission for root,
we walk the ACL, and consider ANY ACE as applicable, however, we
then ignore a DENY ACE.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Remove permission checking from GPFSFSAL_getattrs

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Fix permission checking on READDIR

Do not provide handle or attributes if directory does not have SEARCH permission.

Do not provide attributes for a file if file does not have READ_ATTR permission
(this is a no-op if there is not NFS v4 ACL on the file).

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Make getattr optional with cache_inode_lookup and cache_inode_create

Not all callers of cache_inode_lookup need the attributes and we
are going to check permissions on getattr so it will be good to
not ask for them if we won't use them.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Don't get attr via nfs_FhandleToCache if we don't need them

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Properly permission check cache_inode_getattr

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Properly permission check cache_inode_lookup

Also check object type correctly.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>