Initial new source code drop for support of Protectier FSAL.

More Signed-Off-by lines to be added from the main developers.

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Initial ganesha modifications for support of Protectier FSAL.

More Signed-Off-by lines to be added from the main developers.

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Update function signaures required for rebase

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Update export list to use new glist structures required by rebase

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Add truncate to setattrs

The rebased branch requires truncate to now
be handled in the setattr routine.

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
This fix will reset errno to zero if the ptfsal_write return great zero in function:
PTFSAL_write.
Signed-off-by: Jeff Huang <huangz@us.ibm.com>
Add #define for Ron's fix 81023485.

Signed-off-by: Matthew Cleveland <mgclevel@us.ibm.com>
Branch for ibm_next_pt_20

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
set Entries_HWMark to 1000 and Entries_LWMark 500.
We may have to adjust this depending on the need.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Reduce the lru_thread sleep timeout from 10mins to 90sec

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Relese change for ibm_next_pt_21
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Convert close mutex in close_listener.c to handle based mutexes

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
Relese change for ibm_next_pt_22
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
QC 20775 Fix
On AIX TSM seems to issue a truncate at the end of it's IO (write).
We get that PTFSAL_truncate call in two modes - sometimes with valid FD and
sometimes without FD valid (file not open).
Problem is in the case of getting called without valid FD,
in PTFSAL_truncate we internally open it but never close the file.

The solution is to close the file before returning in this case.
Signed-off-by: root <root@FSI78.(none)>
Update API PTFSAL_close in PTFSAL_truncate for 4.1 rebase

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
PT drop 23

Updated dist version for next PT drop

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Fixed the defect in PTFSAL_Log function so that user can create file named %s.
So Ganesha will not try to format the message again due to FSAL PT already
does format.
Signed-off-by: Jeff Huang <huangz@us.ibm.com>
Remove default ganesha log rotate from PT rpms. QC: 20804

This patch removes the default log rotate config from the PT
rpms.  PT manages their own log rotation, and does not need
the default config.  This corrects the bug reported in QC 20804

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Header file sync for Fix 81023782

Signed-off-by: Hin Lam <hincheuk@us.ibm.com>
Release change for 4.1

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