[Gluster-devel] About DHT layout
Hi I want to know when and where the layout of a directory is created? I read more and the code of dht_mkdir and the functions were called in this function but I could not find the primary part (setting the list field in dht_layout structure), can anyone help me? ___ Gluster-devel mailing list Gluster-devel@gluster.org http://lists.gluster.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] About DHT layout
On Wed, Mar 15, 2017 at 8:43 PM, Tahereh Fattahi wrote: > Hi > DHT creates directories on all the bricks in the volume. And, their range varies from to 0x and and each brick is assigned a specific subset of this range. Also, the directory creation and the setting of layout is part of mkdir operation. I want to know when and where the layout of a directory is created? > > I read more and the code of dht_mkdir and the functions were called in > this function but I could not find the primary part (setting the list field > in dht_layout structure), can anyone help me? > > ___ > Gluster-devel mailing list > Gluster-devel@gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-devel > ___ Gluster-devel mailing list Gluster-devel@gluster.org http://lists.gluster.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] About DHT layout
Thanks a lot, but I need more details. Can you tell me exactly which function assigns the hash to directories on bricks? at the end of dht_function the dht_layout->list does not have the value of hash, so where this assignment is done? On Wed, Mar 15, 2017 at 8:11 PM, Ankit Raj wrote: > > > On Wed, Mar 15, 2017 at 8:43 PM, Tahereh Fattahi > wrote: > >> Hi >> > > DHT creates directories on all the bricks in the volume. And, their > range varies from to 0x and and each brick is assigned a > specific subset of this range. Also, the directory creation and the >setting of layout is part of mkdir operation. > > I want to know when and where the layout of a directory is created? >> > > >> I read more and the code of dht_mkdir and the functions were called in >> this function but I could not find the primary part (setting the list field >> in dht_layout structure), can anyone help me? >> >> ___ >> Gluster-devel mailing list >> Gluster-devel@gluster.org >> http://lists.gluster.org/mailman/listinfo/gluster-devel >> > > ___ Gluster-devel mailing list Gluster-devel@gluster.org http://lists.gluster.org/mailman/listinfo/gluster-devel