Need to set XATTR_MTIME(ATIME) with XATTR_MTIME(ATIME)_NOW

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Picking up TiRPC patch to Fix RPC_TIMEDOUT handling in clnt_dg_call.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Move the code to get nodeid from gpfs to GPFSFSAL_BuildExportContext.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
mkdir works on arg_mkdir3 and not on arg_create3.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Ganesha stats file is world writable. Making it read/write only for
owner/group.

NOTE: I could use fdopen() instead of closing and doing a fopen()
But, the manpage mentions some specific requirement for fdopen()
and for compatibility reasons avoiding it.

Feature Test Macro Requirements for glibc (see
feature_test_macros(7)):

       fdopen(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Take the smaller of MaxRead/max_send_buffer_size and
MaxWrite/max_recv_bufer_size and give that in Fsinfo.
This is workaround for the Tirpc Problem which can't handle
fragments with krb encryption.

Padding 8k when creating tcp transport to avoid fragmentation.

Also change NFS_DEFAULT_RECV/SEND_BUFFER_SIZE to 1M

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Make sure that we release all the locks when state_nlm_notify()
is called through ipmove/recovery.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
rmdir init restart-lock directory sooner

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Bring in the tirpc change for krb5i/5p serialization issue.

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

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Do not check for local conflict with a waiting lock for a lock reclaim

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
idmapper fix
This patch makes the following modifications:

utf82uid/gid: Moved code that drops the @domain in the user name to name2uid/gid

name2uid/gid: Modified code such that if "username" fails to resolve an id, attempt "username@domain"
              Same logic modifed to USE_NFSIDMAP and !USE_NFSIDMAP code paths

Added new export config "Strip_NETBIOS_Name" that takes a list of clients.  Clients present in this list will
              have their NETBIOS\ domain name removed from the username "NETBIOS\username@domain"

uid/gid2utf8: Modified to pass pclient and pworker down to uid/gid2str.  These are needed to
              determine if the given client has the "Strip_NETBIOS_Name" option set

New function drop_slash_domain added:
              Removes the character string NETBIOS\ from a given user name "NETBIOS\username@domain"

New function strip_netbios_name: Helper function for uid2str and gid2str to determine if the client needs to have
                    the netbios name stripped from the uid/gid name for this export

uid/gid2str: Added logic to strip NETBIOS\ domain name from "NETBIOS\username@domain" if
             Strip_NETBIOS_Name option is present for this client

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Moved sleep before sending smnotify.
This will give more time to Ganesha at startup,
before it has to server reclaims.

Signed-off-by: suhrud <supatank@in.ibm.com>
Do not unmonitor the client if we're releasing locks during recovery (release ip)

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Signed-off-by: suhrud <supatank@in.ibm.com>
Attempt to fix a ctdb issue

if two ips are assigned to same node, and one ip is moved
CTDB deletes both and sends sm-notify; when the client comes bac
we need ot add the clientip-serverip back to ctdb database
even if we are service the cache reclaim through cache.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
During release_ip only release nlm locks if they are
associated the IP released.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>
Recovery based on three files.

Signed-off-by: suhrud <supatank@in.ibm.com>