Bug 762065 (GLUSTER-333) - ls on paths not on virtual mounts report wrong directory contents
Summary: ls on paths not on virtual mounts report wrong directory contents
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-333
Product: GlusterFS
Classification: Community
Component: booster
Version: 2.0.7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
: GLUSTER-182 GLUSTER-295 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-23 18:23 UTC by Raghavendra G
Modified: 2009-11-12 06:16 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

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. ***


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