Re: [Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-13 Thread Krutika Dhananjay
- Original Message - > From: "Raghavendra Gowdappa" > To: "Krutika Dhananjay" > Cc: "Mohammed Rafi K C" , "Gluster Devel" > , "Dan Lambright" , "Nithya > Balachandran" , "Ben Turner" , "Ben > England" , "Manoj Pillai" , > "Pranith Kumar Karampuri" , "Ravishankar > Narayanankutty" , xhern

Re: [Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-13 Thread Raghavendra Gowdappa
- Original Message - > From: "Krutika Dhananjay" > To: "Raghavendra Gowdappa" > Cc: "Mohammed Rafi K C" , "Gluster Devel" > , "Dan Lambright" > , "Nithya Balachandran" , "Ben > Turner" , "Ben England" > , "Manoj Pillai" , "Pranith Kumar > Karampuri" , > "Ravishankar Narayanankutty" ,

Re: [Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-12 Thread Krutika Dhananjay
- Original Message - > From: "Raghavendra Gowdappa" > To: "Krutika Dhananjay" > Cc: "Mohammed Rafi K C" , "Gluster Devel" > , "Dan Lambright" , "Nithya > Balachandran" , "Ben Turner" , "Ben > England" , "Manoj Pillai" , > "Pranith Kumar Karampuri" , "Ravishankar > Narayanankutty" , xhern

Re: [Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-12 Thread Raghavendra Gowdappa
- Original Message - > From: "Krutika Dhananjay" > To: "Mohammed Rafi K C" > Cc: "Gluster Devel" , "Dan Lambright" > , "Nithya Balachandran" > , "Raghavendra Gowdappa" , "Ben > Turner" , "Ben > England" , "Manoj Pillai" , "Pranith > Kumar Karampuri" > , "Ravishankar Narayanankutty" ,

Re: [Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-12 Thread Krutika Dhananjay
I faced the same issue with the sharding translator. I fixed it by making its readdirp callback initialize individual entries' inode ctx, some of these being xattr values, which are filled in entry->dict by the posix translator. Here is the patch that got merged recently: http://review.gluster.o

[Gluster-devel] Inconsistent behavior due to lack of lookup on entry followed by readdirp

2015-08-12 Thread Mohammed Rafi K C
Hi All, We are facing some inconsistent behavior for fops like rename, unlink etc due to lack of lookup followed by a readdirp, more specifically if inodes/gfid are populated via readdirp call and this nodeid is shared with kernal, md-cache will cache this based on base-name. Then subsequent named