Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Prashanth Pai
rgowd...@redhat.com> > Cc: "Gluster Devel" <gluster-devel@gluster.org> > Sent: Friday, 30 September, 2016 9:53:44 AM > Subject: Re: [Gluster-devel] Dht readdir filtering out names > > > > On Fri, Sep 30, 2016 at 9:50 AM, Raghavendra Gowdappa < rgow

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
What if the lower xlators want to set the entry->inode to NULL and clear the entry->d_stat to force a lookup on the name? i.e. gfid-split-brain/ia_type mismatches. On Fri, Sep 30, 2016 at 10:00 AM, Raghavendra Gowdappa wrote: > > > - Original Message - > > From:

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Raghavendra Gowdappa
- Original Message - > From: "Pranith Kumar Karampuri" > To: "Raghavendra Gowdappa" > Cc: "Shyam Ranganathan" , "Nithya Balachandran" > , "Gluster Devel" > > Sent: Friday,

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Poornima Gurusiddaiah
In gfapi, we pass down readdirp, irrespective of whether the application called readdir/readdirp. Hence the behaviour will be same for samba and Ganesha i suppose. Regards, Poornima - Original Message - > From: "Pranith Kumar Karampuri" > To: "Raghavendra

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Raghavendra Gowdappa
- Original Message - > From: "Pranith Kumar Karampuri" > To: "Raghavendra Gowdappa" > Cc: "Shyam Ranganathan" , "Nithya Balachandran" > , "Gluster Devel" > > Sent: Friday,

[Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
hi, In dht_readdirp_cbk() there is a check about skipping files without ia_type. Could you help me understand why this check is added? There are times when users have to delete gfid of the entries and trigger something like 'find . | xargs stat' to heal the gfids. This case would fail if we

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
On Fri, Sep 30, 2016 at 9:58 AM, Raghavendra Gowdappa wrote: > > > - Original Message - > > From: "Pranith Kumar Karampuri" > > To: "Raghavendra Gowdappa" > > Cc: "Shyam Ranganathan" , "Nithya

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Raghavendra Gowdappa
dht_readdirp_cbk has different behaviour for directories and files. 1. If file, pick the dentry (passed from subvols as part of readdirp response) if the it corresponds to data file. 2. If directory pick the dentry if readdirp response is from hashed-subvol. In all other cases, the dentry is

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Soumya Koduri
On 09/30/2016 10:08 AM, Pranith Kumar Karampuri wrote: Does samba/gfapi/nfs-ganesha have options to disable readdirp? AFAIK, currently there is no option to disable/enable readdirp in gfapi & nfs-ganesha (not sure about samba). But looks like nfs-ganesha seem to be always using readdir,

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Raghavendra Gowdappa
- Original Message - > From: "Pranith Kumar Karampuri" > To: "Raghavendra Gowdappa" > Cc: "Shyam Ranganathan" , "Nithya Balachandran" > , "Gluster Devel" > > Sent: Friday,

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
On Fri, Sep 30, 2016 at 9:13 AM, Raghavendra Gowdappa wrote: > dht_readdirp_cbk has different behaviour for directories and files. > > 1. If file, pick the dentry (passed from subvols as part of readdirp > response) if the it corresponds to data file. > 2. If directory pick

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Raghavendra Gowdappa
- Original Message - > From: "Raghavendra Gowdappa" > To: "Pranith Kumar Karampuri" > Cc: "Shyam Ranganathan" , "Nithya Balachandran" > , "Gluster Devel" > > Sent: Friday,

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
On Fri, Sep 30, 2016 at 9:50 AM, Raghavendra Gowdappa wrote: > > > - Original Message - > > From: "Pranith Kumar Karampuri" > > To: "Raghavendra Gowdappa" > > Cc: "Shyam Ranganathan" , "Nithya

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Soumya Koduri
On 09/30/2016 03:02 PM, Poornima Gurusiddaiah wrote: In gfapi, we pass down readdirp, irrespective of whether the application called readdir/readdirp. Hence the behaviour will be same for samba and Ganesha i suppose. But in gfapi, I see clear distinction for readdir and readdirp calls

Re: [Gluster-devel] Dht readdir filtering out names

2016-09-30 Thread Pranith Kumar Karampuri
Does samba/gfapi/nfs-ganesha have options to disable readdirp? On Fri, Sep 30, 2016 at 10:04 AM, Pranith Kumar Karampuri < pkara...@redhat.com> wrote: > What if the lower xlators want to set the entry->inode to NULL and clear > the entry->d_stat to force a lookup on the name? i.e. >