Bug 762327 (GLUSTER-595) - find -type l does not return correct results on CentOS 5.4
Summary: find -type l does not return correct results on CentOS 5.4
Keywords:
Status: CLOSED DUPLICATE of bug 762303
Alias: GLUSTER-595
Product: GlusterFS
Classification: Community
Component: core
Version: 3.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-04 19:36 UTC by nathan
Modified: 2015-09-01 23:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description nathan 2010-02-04 16:41:05 UTC
The other was also able to confirm that this works correctly under a Fedora 12 client.

Comment 1 nathan 2010-02-04 19:36:29 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.

Comment 2 Anand Avati 2010-02-05 00:46:03 UTC
This bug is already fixed in 3.0.2. Please refer bug #762303.

*** This bug has been marked as a duplicate of bug 571 ***


Note You need to log in before you can comment on or make changes to this bug.