Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-06-06 Thread Xavier Hernandez
Sent: Wednesday, June 1, 2016 11:57:12 AM Subject: Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols Oops, you are right. For entry operations the current version of the parent directory is not checked, just

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-06-06 Thread Raghavendra G
t; , "Raghavendra G" < >>> raghaven...@gluster.com> >>> Cc: "Gluster Devel" >>> Sent: Wednesday, June 1, 2016 11:57:12 AM >>> Subject: Re: [Gluster-devel] dht mkdir preop check, afr and >>> (non-)readable afr subvols >>> &g

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-06-01 Thread Xavier Hernandez
Hi, On 01/06/16 08:53, Raghavendra Gowdappa wrote: - Original Message - From: "Xavier Hernandez" To: "Pranith Kumar Karampuri" , "Raghavendra G" Cc: "Gluster Devel" Sent: Wednesday, June 1, 2016 11:57:12 AM Subject: Re: [Gluster-de

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Raghavendra Gowdappa
- Original Message - > From: "Xavier Hernandez" > To: "Pranith Kumar Karampuri" , "Raghavendra G" > > Cc: "Gluster Devel" > Sent: Wednesday, June 1, 2016 11:57:12 AM > Subject: Re: [Gluster-devel] dht mkdir preop check, afr

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Xavier Hernandez
Oops, you are right. For entry operations the current version of the parent directory is not checked, just to avoid this problem. This means that mkdir will be sent to all alive subvolumes. However it still selects the group of answers that have a minimum quorum equal or greater than #bricks -

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Pranith Kumar Karampuri
Xavi, But if we keep winding only to good subvolumes, there is a case where bad subvolumes will never catch up right? i.e. if we keep creating files in same directory and everytime self-heal completes there are more entries mounts would have created on the good subvolumes alone. I think I m

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Raghavendra G
I've filed a bug at [1] to track issue in afr. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1341429 On Tue, May 31, 2016 at 2:17 PM, Raghavendra G wrote: > > > On Tue, May 31, 2016 at 12:37 PM, Xavier Hernandez > wrote: > >> Hi, >> >> On 31/05/16 07:05, Raghavendra Gowdappa wrote: >> >>> +g

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Raghavendra G
On Tue, May 31, 2016 at 12:37 PM, Xavier Hernandez wrote: > Hi, > > On 31/05/16 07:05, Raghavendra Gowdappa wrote: > >> +gluster-devel, +Xavi >> >> Hi all, >> >> The context is [1], where bricks do pre-operation checks before doing a >> fop and proceed with fop only if pre-op check is successful.

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Pranith Kumar Karampuri
Just checked ec code. Looks okay. All entry fops are also updating metadata and data part of the xattr. On Tue, May 31, 2016 at 12:37 PM, Xavier Hernandez wrote: > Hi, > > On 31/05/16 07:05, Raghavendra Gowdappa wrote: > >> +gluster-devel, +Xavi >> >> Hi all, >> >> The context is [1], where bric

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-31 Thread Xavier Hernandez
Hi, On 31/05/16 07:05, Raghavendra Gowdappa wrote: +gluster-devel, +Xavi Hi all, The context is [1], where bricks do pre-operation checks before doing a fop and proceed with fop only if pre-op check is successful. @Xavi, We need your inputs on behavior of EC subvolumes as well. If I under

Re: [Gluster-devel] dht mkdir preop check, afr and (non-)readable afr subvols

2016-05-30 Thread Raghavendra Gowdappa
+gluster-devel, +Xavi Hi all, The context is [1], where bricks do pre-operation checks before doing a fop and proceed with fop only if pre-op check is successful. @Xavi, We need your inputs on behavior of EC subvolumes as well. [1] http://review.gluster.org/13885 regards, Raghavendra -