Bug 796534

Summary: ls -l on distribute vol mount shows linkfile too
Product: [Community] GlusterFS Reporter: shishir gowda <sgowda>
Component: coreAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: ashetty, gluster-bugs, nsathyan, shmohan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:22:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 817967    

Description shishir gowda 2012-02-23 06:52:27 UTC
Description of problem:
Check_is_linkfile is failing, entry of readdip does not have dict set.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. create file
2. rename file till link file is created
3. ls -l on dir
  
Actual results:
2 entries show for same file

Expected results:
1 entry should be shown

Additional info:
This because we were not sending the dict (with linkto key) to server. client protocol needs to propogate the right dict.
Additionally, we needed to allocated dict in readdirp_cbk for each entry before we unserialize the buffer

Comment 1 Anand Avati 2012-02-23 07:19:15 UTC
CHANGE: http://review.gluster.com/2803 (protocol/client: Pass correct dict in client_readdirp) merged in master by Vijay Bellur (vijay)

Comment 2 shishir gowda 2012-02-24 05:34:27 UTC
*** Bug 796701 has been marked as a duplicate of this bug. ***

Comment 3 Anush Shetty 2012-05-19 05:01:47 UTC
Verified on release-3.3 (commit-id 0cdb1d147afd644153855f6557bf7e809e5444f0)