Bug 762760 (GLUSTER-1028) - "ls" does not show anything
Summary: "ls" does not show anything
Keywords:
Status: CLOSED WORKSFORME
Alias: GLUSTER-1028
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-24 21:37 UTC by Krishna Srinivas
Modified: 2015-12-01 16:45 UTC (History)
3 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 Krishna Srinivas 2010-06-24 21:37:45 UTC
* 1st subvol is up
* nfs xlator is loaded on top of distribute
* ls does not show anything on nfs mount point
* nfs does not send openddir
* nfs does readdir on ls on an older already opened fd (the same fd everytime)
* dht_readdir_cbk is called with op_ret=-1 op_errno=77 from 1st subvol because it had previously got error when 1st subvol was down. so client_readdirp returns errno 77
* dht returns op_ret=0 to NFS as it filters out all directories read from the 2nd subvol :

                if (check_is_linkfile (NULL, (&orig_entry->d_stat), NULL)
                    || (check_is_dir (NULL, (&orig_entry->d_stat), NULL)
                        && (prev->this != dht_first_up_subvol (this)))) {
                        continue;
                }

* this behavior is not seen without nfs xlator as opendir would be sent before readdir.

Comment 1 Tejas Bhise 2010-07-26 09:17:32 UTC
Avati, Krishna - please classify the defect type and target release.

Comment 2 shishir gowda 2010-10-05 09:25:09 UTC
This issue is fixed in the latest git to handle open fd lookup.


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