Hide Forgot
The other was also able to confirm that this works correctly under a Fedora 12 client.
CentOS 5.4 (2.6.18-164.11.1.el5): find under a GlusterFS mount does not properly detect symlinks. Another user has confirmed that he was able to reproduce this under GlusterFS but under his sshfs test it worked fine. [root@test GlusterTest]$ mkdir /mnt/GlusterTest/adir/ [root@test GlusterTest]$ cd /mnt/GlusterTest/adir/ [root@test adir]$ touch afile [root@test adir]$ ln -s afile alink [root@test adir]$ find . -type l [root@test adir]$ find . -type f ./alink ./afile [root@test adir]$ find alink -type l alink [root@test adir]$ find afile -type l [root@test adir]$ As you can see, on a directory iteration using getdents() find thinks everything is a file but if I point it at the underlying so it uses lstat() directly then it works correctly.
This bug is already fixed in 3.0.2. Please refer bug #762303. *** This bug has been marked as a duplicate of bug 571 ***