Bug 762065 (GLUSTER-333)

Summary: ls on paths not on virtual mounts report wrong directory contents
Product: [Community] GlusterFS Reporter: Raghavendra G <raghavendra>
Component: boosterAssignee: Raghavendra G <raghavendra>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 2.0.7CC: gluster-bugs, krishna, min, shehjart
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: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shehjar Tikoo 2009-10-23 18:22:23 UTC
Looks like this is related to 295.

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

Comment 1 Shehjar Tikoo 2009-10-23 18:23:20 UTC
Duplicate but not resolved.

Comment 2 Raghavendra G 2009-10-23 18:23:38 UTC
root@booradley:/home/raghu/vol-specs/point-to-point# LD_PRELOAD=/usr/lib/glusterfs/glusterfs-booster.so ls /home/raghu/vol-specs/point-to-point/
   ?goE  -client.vol  1       d.out.18393  d.out.9595  ml               s.log
   ?รณ ?  -server.vol  ad.vol  d.out.3567   hind.vol    nce-xlators.vol  sd.log

both readdir and readdir64 call same function - booster_readdir - in their implementation. This is wrong since the dirent structures returned by  libc implementations of readdir and readdir64 are different (readdir returns (struct dirent *), readdir64 returns (struct dirent64 *)). There should be different implementations for readdir and readdir64.

Comment 3 Anand Avati 2009-10-26 11:09:15 UTC
PATCH: http://patches.gluster.com/patch/1993 in master (booster: seperate out the implementations of readdir and readdir64.)

Comment 4 Anand Avati 2009-10-26 11:09:39 UTC
PATCH: http://patches.gluster.com/patch/1994 in release-2.0 (booster: seperate out the implementations of readdir and readdir64.)

Comment 5 Shehjar Tikoo 2009-11-12 03:16:02 UTC
*** Bug 295 has been marked as a duplicate of this bug. ***

Comment 6 Shehjar Tikoo 2009-11-12 03:16:49 UTC
*** Bug 182 has been marked as a duplicate of this bug. ***