Fix Use After Free.
Ported from 1.5.x: 690d68e9789f33024514504279496f019f48d322

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Signed-off-by: suhrud <supatank@in.ibm.com>
changed Use_Getattr_Directory_Invalidation to 0
Ported from 1.5.x: 3efa36184166f8b83d1787aefecf70d82b8458bd

Signed-off-by: suhrud <supatank@in.ibm.com>
Changed Nb_Worker from 128 to 512
Ported from 1.5.x: a15038ddb492c3146ae57c171c490126ef6b67e1

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

Take -fPIC compiliation.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
As the source of last resort try checking if owner and owner_group in
NFSv4 attributes is purely numeric value. If the check passes then
assume that ID is good and add it to the in-core cache - this deals with
servers which return IDs in form 17@myhost.

Ported from 1.5.x:  9563819d197378b1563523fcb237e61e6e8543f8
Original author: Max Matveev <makc@gmx.co.uk>

Return 'false' in last resort.
Matt Benjamin <matt@linuxbox.com>

Signed-off-by: suhrud <supatank@in.ibm.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
The nfs clients use nfs/hostname princiapl for root.
Map all nfs/* kerberos principals to root.

Ported from 1.5.x: 0a6591be2f0e6d8df71ffa1cc19affd6da9c2a91

Signed-off-by: suhrud <supatank@in.ibm.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>

There is no pguid.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Removed compiler warning for idmapper_lookup_by_uname()
Use ANON_UID and ANON_GID in principal2uid() instead of hard coded -2

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

Conflicts:
	src/IdMapper/idmapper.c
	src/IdMapper/idmapper_cache.c
	src/include/idmapper.h

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fixed principal2uid() to do IDMAP lookup in case the map is not  found
in local cache.
Signed-off-by: suhrud <supatank@in.ibm.com>

Conflicts:
	src/IdMapper/idmapper.c

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Merge branch 'tp/suhrud-2.0-next-3' into ibm_next_20_tmp
Set req_ctx->export to not crash in pseudo readdir

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
FSAL_HPSS: remove source for copyright reasons. In order to ease a revert commit in CEA's private repo, files were left but emptied.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Be selective about stripping export->fullpath

Don't strip if the path is only one character long (so we don't end up
with the root being "") and don't strip if the first character isn't a /.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Enable destroy_clientid

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Remove export permission check on RECLAIM_COMPLETE

Since RECLAIM_COMPLETE needs to usable without a filehandle, we can't
do something that requires we have one.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Merge remote-tracking branch 'ganltc/ibm_next_20' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'linuxbox2/next' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
9P: fids are now managed as an pointers and allocated on demand.
    They are allocated oni TWALK and TXATTRWALK only
    They are freed on TCLUNK
(cherry picked from commit d78ffadba3335fead2b1e468c72271e97062f8b6)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
9P: this commits make msize tunable (via configuration file) for TCP and RDMA
(cherry picked from commit fefe23c9abc32bb7d097413d6f15b47d577ccbaf)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Jenkins: Add sigmund's test
(cherry picked from commit d7c335a74a88f8d1bca92b65c7749c15417c9890)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Jenkins : no more cpp-check
(cherry picked from commit 2b88d04a261a5ff7e6fc12e008a5b9b1b8e21742)

Signed-off-by: Jim Lieb <jlieb@panasas.com>