Use long form clientid to persist clientid on storage for V4 recovery.
Since clientid could be 1024 byte long and contains non printable characters,
we devide the long form clientid into segments of 255 characters
to create a directory sturcture to represent the clientid.

For example:
abcdefghijklmn -> abcd/efgh/ijkl/mn

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
In the case of ip move the source node may be still releasing
the state that we need to acquire. So let us be little patient
to STATE_LOCK_CONFLICT errors if the lock is a reclaim and we are
in grace and retry it.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Take state for all IPs if g_nodeid = 0.
This can happen if FSAL_BuildExportContext does not set g_nodeid or
there are no exports defined, i.e FSAL_BuildExportContext is never
called.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Additional change for clientid persistence.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
In nfs_release_v4_client, ignore stale clientid in hashtable.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Add cache for storing exports by id. This helps to avoid lenier search
going through exports list and saves lot of CPU cycles.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
resub_all_nlm_blocked mistakenly removed the state
when lock request is successful.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
nfs4_read_recov_clids need to handle (skip) malformat.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Check if there is any zombie process. If so we don't want to start restart ganesha
due to gpfs inode_update issue

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Free pevent if ioctl fails in GPFSFSAL_UP_Thread.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Set the client permissions for EXPORT_OPTION_NETBIOS_NAME option.

Signed-off-by: suhrud <supatank@in.ibm.com>
nfs4_create_clid_name failed to get the correct clidstr length
when clientid has opaque char.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>