Bug 762760 (GLUSTER-1028)

Summary: "ls" does not show anything
Product: [Community] GlusterFS Reporter: Krishna Srinivas <krishna>
Component: distributeAssignee: shishir gowda <sgowda>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: gluster-bugs, nsathyan, tejas
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 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.