Re: [Gluster-devel] How can add one fop after another fop?

2017-03-30 Thread Tahereh Fattahi
? On Thu, Mar 30, 2017 at 4:10 PM, Niels de Vos <nde...@redhat.com> wrote: > On Thu, Mar 30, 2017 at 03:52:39PM +0430, Tahereh Fattahi wrote: > > Thanks for your answer. > > For example I want to save the number of files in directory as one > extended > > att

Re: [Gluster-devel] How can add one fop after another fop?

2017-03-30 Thread Tahereh Fattahi
Thank you very much, I check all of the alternative and see that xlator/mount/fuse/src/fuse-bridge fuse_create is the first On Thu, Mar 30, 2017 at 5:18 PM, Niels de Vos <nde...@redhat.com> wrote: > On Thu, Mar 30, 2017 at 04:59:02PM +0430, Tahereh Fattahi wrote: > &

Re: [Gluster-devel] How can add one fop after another fop?

2017-03-30 Thread Tahereh Fattahi
translator and it was false because the creation is not complete in this translator. On Thu, Mar 30, 2017 at 3:44 PM, Niels de Vos <nde...@redhat.com> wrote: > On Thu, Mar 30, 2017 at 07:03:28AM +0430, Tahereh Fattahi wrote: > > Hi > > I want after create any file, do one setxattr

Re: [Gluster-devel] How can add one fop after another fop?

2017-03-30 Thread Tahereh Fattahi
default_create is a good point (in libglusterfs/default) but I can not find the body of this function. can any one tell me which function is the input point for doing a fop? in api folder? or elsewhere? On Thu, Mar 30, 2017 at 7:03 AM, Tahereh Fattahi <t28.fatt...@gmail.com> wrote: > Hi > I want

[Gluster-devel] How can add one fop after another fop?

2017-03-29 Thread Tahereh Fattahi
Hi I want after create any file, do one setxattr automatically , where and how I should add this operation, and in which translator? ___ Gluster-devel mailing list Gluster-devel@gluster.org http://lists.gluster.org/mailman/listinfo/gluster-devel

Re: [Gluster-devel] About inode table: client, server and inconsistency

2017-03-18 Thread Tahereh Fattahi
<atumb...@redhat.com> wrote: > > > On Thu, Mar 16, 2017 at 10:30 PM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> Is it correct that each brick has one inode table for itself and each >> client has one inode table that stores any

Re: [Gluster-devel] About DHT layout

2017-03-15 Thread Tahereh Fattahi
at.com> wrote: > > > On Wed, Mar 15, 2017 at 8:43 PM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> > > DHT creates directories on all the bricks in the volume. And, their > range varies from to 0x and and each brick

Re: [Gluster-devel] About inode table: client, server and inconsistency

2017-03-22 Thread Tahereh Fattahi
a university project! On Sun, Mar 19, 2017 at 11:31 PM, Nithya Balachandran <nbala...@redhat.com> wrote: > > > On 18 March 2017 at 21:42, Tahereh Fattahi <t28.fatt...@gmail.com> wrote: > >> Thank you very much. >> Is it possible to change something in ser

[Gluster-devel] commit hash update (a field like commit hash)

2017-04-06 Thread Tahereh Fattahi
Hi I declare a new variable in dht_layout->list structure similar to commit_hash, but I can not update this field in global . This update is just local and in client that do this update, servers and othe client can not see this change. For update this field I do like commit_hash functions,

Re: [Gluster-devel] commit hash update (a field like commit hash)

2017-04-07 Thread Tahereh Fattahi
give us more detail like how are you sending > the xattrs , things like that . > > Regards > Rafi KC > > > On 04/06/2017 07:37 PM, Tahereh Fattahi wrote: > > Hi > I declare a new variable in dht_layout->list structure similar to > commit_hash, but I can n

Re: [Gluster-devel] About locking subvolume in dht translator

2017-04-21 Thread Tahereh Fattahi
functionality On Fri, Apr 21, 2017 at 11:42 AM, Amar Tumballi <atumb...@redhat.com> wrote: > > > On Fri, Apr 21, 2017 at 12:21 PM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> I want add some code in dht_create before doing create in hashed_subvol. &

[Gluster-devel] About locking subvolume in dht translator

2017-04-21 Thread Tahereh Fattahi
Hi I want add some code in dht_create before doing create in hashed_subvol. I want write something in all subvols with setxattr operation. My problem is that when I want get lock (write lock) on subvols, I get error: pending frames: frame : type(1) op(CREATE) frame : type(1) op(CREATE) frame :

[Gluster-devel] performance test and a spacial workload

2017-04-16 Thread Tahereh Fattahi
Hi I want to create a performance test with a special workload: 1. create a file in a directory 2. setxattr on the directory of the previous file I could not merge this two in glister code and could not find a framework that generate this workload for me. I read the code of smallfile (a framework

Re: [Gluster-devel] DHT xlator, read and write a file during creating a new file

2017-05-03 Thread Tahereh Fattahi
Thank you I need this information divided to bricks. On Tue, May 2, 2017 at 11:07 PM, Vijay Bellur <vbel...@redhat.com> wrote: > > > On Tue, May 2, 2017 at 8:00 AM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> >> I want to use a file as

[Gluster-devel] Detail of directory divided by briks in client side

2017-05-03 Thread Tahereh Fattahi
Hi Is it possible to know the file count and directory count of one directory divided by bricks in client side? Is there any feature or idea to be implemented? ___ Gluster-devel mailing list Gluster-devel@gluster.org

Re: [Gluster-devel] DHT xlator, read and write a file during creating a new file

2017-05-03 Thread Tahereh Fattahi
question a bout detail of directory divided by brik! On Wed, May 3, 2017 at 4:15 PM, Tahereh Fattahi <t28.fatt...@gmail.com> wrote: > Yes, it is ok > Is it possible to see this attribute in client side? In which xlator? > > On Wed, May 3, 2017 at 2:58 PM, Sanoj Unnikrishnan &l

[Gluster-devel] How rebalance volume without changing layout?

2017-05-19 Thread Tahereh Fattahi
Hi Is it any way to rebalance a volume without any change in layout? (for example the layout changed before and now just need rebalance) I test rebalance and rebalace force, they change the layout. I could not do this rebalance for each file in a directory in client side from a setxattr because

Re: [Gluster-devel] Adding one variable to inode structure

2017-06-05 Thread Tahereh Fattahi
Thank you very much But if it was like trusted.glusterfs.dht or trusted.glusterfs.qouta it was more better. On Mon, Jun 5, 2017 at 2:58 PM, Pranith Kumar Karampuri <pkara...@redhat.com > wrote: > > > On Mon, Jun 5, 2017 at 12:40 PM, Tahereh Fattahi <t28.fatt...@gmail.com>

[Gluster-devel] Rebalance source code

2017-06-07 Thread Tahereh Fattahi
Hi I want to follow the process when rebalance command is done. Which files should I read? I see something in cli directory that sends request to another abject. But I need to find function that do core operation of rebalance. I expect to see something like this in one function: function rebalance

[Gluster-devel] Adding one variable to inode structure

2017-06-04 Thread Tahereh Fattahi
Hi I want to add one boolean field to inode structure for a directory. when it is 1 it means that directory has one or more video file. when it is 0 it means that there is no video file in that directory. I can add this variable to inode structure and update it in server side, in posix_create

Re: [Gluster-devel] Adding one variable to inode structure

2017-06-05 Thread Tahereh Fattahi
I want in in mount directory in client side On Mon, Jun 5, 2017 at 11:07 AM, Pranith Kumar Karampuri < pkara...@redhat.com> wrote: > > > On Mon, Jun 5, 2017 at 11:24 AM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Thank you >> I see that this xlat

Re: [Gluster-devel] Adding one variable to inode structure

2017-06-04 Thread Tahereh Fattahi
le and how? May be with that knowledge there could be a possibility > we can improve the solution. Do let us know the complete problem you are > trying to solve. > > On Mon, Jun 5, 2017 at 4:53 AM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> I want to add one boolean

Re: [Gluster-devel] Adding one variable to inode structure

2017-06-04 Thread Tahereh Fattahi
Thank you I see that this xlator is loaded in server side. How can I access to variable in index xlator in client side? is it correct? getfattr trusted.index.myvar On Mon, Jun 5, 2017 at 10:00 AM, Pranith Kumar Karampuri < pkara...@redhat.com> wrote: > > > On Mon, Jun 5, 2017 at 9

Re: [Gluster-devel] Rebalance source code

2017-06-07 Thread Tahereh Fattahi
I had seen this function before but when dht xlator is not loaded in server side, how this function will be called? On Wed, Jun 7, 2017 at 4:58 PM, Nithya Balachandran <nbala...@redhat.com> wrote: > > > On 7 June 2017 at 17:31, Tahereh Fattahi <t28.fatt...@gmail.com> wro

[Gluster-devel] About spread count, lookup and layout

2017-04-29 Thread Tahereh Fattahi
Hi I have some question about spread count: 1. When I set spread count less than subvolume count, I see the hash is assigned to one directory layout for some subvolumes are zero (that is ok) , but I expect these subvolumes should not bee looked up in case lookup_everywhere for creating a file.

Re: [Gluster-devel] About spread count, lookup and layout

2017-04-29 Thread Tahereh Fattahi
, 2017 at 8:12 AM, Raghavendra Gowdappa <rgowd...@redhat.com> wrote: > > > - Original Message ----- > > From: "Tahereh Fattahi" <t28.fatt...@gmail.com> > > To: "Gluster Devel" <gluster-devel@gluster.org> > > Sent: Sunday, April 30

[Gluster-devel] DHT xlator, read and write a file during creating a new file

2017-05-02 Thread Tahereh Fattahi
Hi I want to use a file as a counter when I create a file in dht xlator. I mean, after creating a new file, I want open a file in the same directory with a special name, read that, update the counter and write back. I think for this purpose I should open in dht_create_cbk, read in dht_open_cbk

Re: [Gluster-devel] DHT xlator, read and write a file during creating a new file

2017-05-02 Thread Tahereh Fattahi
generate a lot of file. So which one is better in your opinion? On Tue, May 2, 2017 at 5:06 PM, Amar Tumballi <atumb...@redhat.com> wrote: > > > On Tue, May 2, 2017 at 5:30 PM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Hi >> >> I want to use a

Re: [Gluster-devel] DHT xlator, read and write a file during creating a new file

2017-05-03 Thread Tahereh Fattahi
ast 16 bytes > > Regards, > Sanoj > > On Wed, May 3, 2017 at 12:20 PM, Tahereh Fattahi <t28.fatt...@gmail.com> > wrote: > >> Thank you >> I need this information divided to bricks. >> >> On Tue, May 2, 2017 at 11:07 PM, Vijay Bellur <vbel...@redh