<div><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">Hello,</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div>

<font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">  I am debugging a basic translator that was created based on the rot-13 example, but I&#39;d like to gather more info on how to procede at the example below.</span></font></div>

<div><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">  So, the volfile I&#39;m using is very basic, with two directories(bricks) configured as posix volumes and my translator using both as subvolumes.</span></font></div>

<div><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">  </span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">  Now suppose I want to write the same file on both subvolumes (like an echo &quot;abc&quot; &gt; /mnt/glustermount/test.txt). </span></font></div>

<div><span style="white-space:nowrap;color:rgb(34,34,34);font-family:arial,sans-serif">  I tried to loop through the this-&gt;children list at the writev function, calling the writev of each subvolume (as copied below) instead of the FIRST_CHILD macro.</span></div>

<div><span style="white-space:nowrap;color:rgb(34,34,34);font-family:arial,sans-serif">  At the 1st subvolume it was ok, but at the second one I got a segmentation fault when calling the STACK_WIND complaining about pthread_spin_lock.</span></div>

<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:nowrap"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:nowrap">  What other kind of structure/control I&#39;d need to build to replicate the content over all the subvolumes I have? </span></div>

<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:nowrap">  What I want at first is to know how I can control the write over different subvolumes, so any hint here is welcome.</span></div><div>

<br></div><div><div>190         xlator_list_t *list = this-&gt;children ;</div><div>191         while (list) {</div><div>192                 STACK_WIND (frame, gbfs_writev_cbk, list-&gt;xlator,</div><div>193                                 list-&gt;xlator-&gt;fops-&gt;writev, fd, vector, count, off,</div>

<div>194                                 flags, iobref, xdata);</div><div>195                 list=list-&gt;next;</div><div>196         }</div></div><div><br></div><div>Thanks,<br>Gustavo Brand<br>---------------------------------------------------------------------------------<br>


</div>