Add cancel_all_nlm_blocked function to call before real locks are released

Signed-off-by: Marc Eshel <eshel@us.ibm.com>
Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Grace period should be >= Lease_lifetime.
For environments which have issues with grace period more than 60 seonds,
Lease_Lifetime in main.conf can be changed to a smaller value.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
The nfs clients use nfs/hostname princiapl for root.
Map all nfs/* kerberos principals to root.

Signed-off-by: suhrud <supatank@in.ibm.com>
Don't refcnt dupreq entry with status DUPREQ_BEING_PROCESSED. Otherwise refcnt will stay positive and plug the DRC
retiring all entries behind.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Convert ETXTBSY to ERR_FSAL_SHARE_DENIED instead of FSAL_FILE_OPEN.
For v4 it will be converted to NFS4ERR_SHARE_DENIED.
For v3 it will be converted to NFS3ER_JUKEBOX, which will allow a client to wait
for the share reservation to be released.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Fixed the defect that closing call come in and change the NFS state just before
open call return handle index to client. The fix will call fast open which is
protected by mutex before return handle index to client.

Signed-off-by: huangz <huangz@us.ibm.com>
Commit for pt v4.1 rev_9

Signed-off-by: Allison Henderson <achender@vnet.linux.ibm.com>
Add -D directory option to tools/findlog.sh

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Use generic ACL code for FSAL_PT

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

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

Ganesha really depends on doing all permission checking, we will not
defer permission checking to the underlying file system.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip lots of code and Use COMMON_test_access instead

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip explicit permission checking from FSAL_GPFS

Permission checking will be done uniformly up in Cache_Inode layer.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Use fsal_set_credentials in GPFSFSAL_unlink, GPFSFSAL_rename, and GPFSFSAL_link

Due to atomicity problems, GPFS needs to do the permission checking for
directory mutating operations, so set the thread credentials to allow that and
strip the old explicit permission checking.

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Strip explicit permission checking from FSAL_PT

Permission checking will be done up in cache_inode_setattr

This is the FSAL_PT equivalent of commits:
e202b2344dea80d59220cec64879b31c9216667c
1ea7d624dacfb62d5cc906e0a5973c32dc27f091

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip explicit permission checking from FSALs: HPSS, LUSTRE, POSIX, VFS, XFS

Permission checking will be done uniformly up in Cache_Inode layer.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip explicit permission checking from MFSL

Permission checking will be done uniformly up in Cache_Inode layer.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip local op routines from FSAL_TEMPLATE

The routines in FSAL/common_methods.c should be used unless they must be
overode.

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip testing of FSAL_access and FSAL_test_access

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Strip unused FSAL access check routines

The following routines are no longer used (only FSAL_test_access is still used):

FSAL_access
FSAL_setattr_access
FSAL_rename_access
FSAL_create_access
FSAL_unlink_access
FSAL_link_access

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