Allow v3 to return fileid on READDIR in 444 directory

When a user only has read access in a directory, the client is still
dependent on getting the fileid for each file. If it does not, the
client fails to show any directory entries (other than . and ..).

Unfortunately, for Linux clients, this only works for v3 (other
clients are unknown). v4 Linux client must get all the attributes
or it does not work correctly.

There was also a bug where Ganesha was actually not returning all
the entries.

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Remove the trailing slash in mount export response. Window client
does not seem to like it.

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

Attempt to access uninitialized supported_access resulted in SEGFAULT.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Fix directory fd leak.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Change entry to entry_wkref in  cache_inode_dir_entry_t

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Avoid getting handle and attr as part of readdir in GPFS FSAL

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Rearrange readdir codepath to avoid unnecessary duplicate operations.
This patch makes two scans of the dirent cache to remove recently
deleted directory entries.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Use a more reasonable readdir entry count estimate for v3.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Add the weakref to dirent in readdir path.

If cache_inode_weakref_get fails we add the entry in the cache through
cache_inode_lookup_weakref, and when that happens add the weakref of
newly created entry to the dirent

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>