| Summary: | find -type l does not return correct results on CentOS 5.4 | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | nathan <nfaber> |
| Component: | core | Assignee: | Anand Avati <aavati> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.0.0 | CC: | anush, chrisw, gluster-bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | RTNR | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
nathan
2010-02-04 16:41:05 UTC
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 *** |