Zhao Li wrote:
So I am wondering what C code you use for "ls" and "find" and how you explain "*" in "ls" and "find" to lead to this big difference in Gluster File System.
--- Nothing to do with Gluster, bash, ls or find, but w/the example. I did both w/output to files in ./tmp -- you need to start at the same place in both.
your 'find' command should be: time find tmp/*.txt -path '*tmp*' -name '*.txt'> /dev/null I.e.: use the same starting point: 'tmp/*.txt'