[Gluster-devel] readdir vs readdirp

Vijay Bellur vbellur at redhat.com
Sat Feb 7 18:45:49 UTC 2015

On 02/06/2015 02:03 PM, Dan Lambright wrote:
> Hi All, I hope this is not an overly stupid question..
> Does anyone know a good way to test readdir (not readdirplus) on gluster?
> I see in :
> bugs/replicate/886998/strict-readdir.t
> .. that there is a switch "cluster.strict-readdir". It does not appear to work, or be referenced in the code - perhaps I am missing something.
> I also tried mounting nfs with the "nordirplus" option, this did not produce the desired results either, surprisingly.

With fuse client, I suspect you would need to do the following to let 
readdir fop percolate through the stack:

1. mount client with --use-readdirp=no. This will bypass readdirplus in 

2. Disable md-cache. md-cache by default converts all readdir operations 
to readdirplus for its functioning.

3. Prevent dht from doing readdirp by default. While mounting, you could 
pass --xlator-option "*dht.use-readdrip=no" to prevent readdir to 
readdirp conversions in dht.


More information about the Gluster-devel mailing list