Bug 796534 - ls -l on distribute vol mount shows linkfile too
Summary: ls -l on distribute vol mount shows linkfile too
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
: 796701 (view as bug list)
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-02-23 06:52 UTC by shishir gowda
Modified: 2013-12-09 01:29 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:22:40 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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)


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