<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 21, 2017 at 12:21 PM, Tahereh Fattahi <span dir="ltr">&lt;<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I want add some code in dht_create before doing create in hashed_subvol.</div><div>I want write something in all subvols with setxattr operation.</div><div>My problem is that when I want get lock (write lock) on subvols, I get error: </div><div><br></div><div>pending frames:<br></div><div><div>frame : type(1) op(CREATE)</div><div>frame : type(1) op(CREATE)</div><div>frame : type(0) op(0)</div><div>patchset: git://<a href="http://git.gluster.com/glusterfs.git" target="_blank">git.gluster.com/<wbr>glusterfs.git</a></div><div>signal received: 11</div><div>time of crash: </div><div>2017-04-21 06:38:23</div><div>configuration details:</div><div>argp 1</div><div>backtrace 1</div><div>dlfcn 1</div></div><div>.</div><div>.</div><div>.</div><div>But if I just get lock on one subvol, the step of getting locks do correctly.</div><div>I dont know the problem! Are subvols that get from layout from a file parent inode fake?? (from dht_get_layout function)</div><div>If I get these locks from a directory for example in a setxattr operation, there is no problem.</div><div>The function of lock is dht_blocking_inodelk in dht_commom.c and the operation</div><div><br></div><div><div>STACK_WIND_COOKIE (frame, dht_blocking_inodelk_cbk,</div><div>                           (void *) (long) i,</div><div>                           local-&gt;lock.locks[i]-&gt;xl,</div><div>                           local-&gt;lock.locks[i]-&gt;xl-&gt;<wbr>fops-&gt;inodelk,</div><div>                           local-&gt;lock.locks[i]-&gt;domain,</div><div>                           &amp;local-&gt;lock.locks[i]-&gt;loc, F_SETLKW, &amp;flock, NULL);</div></div><div><br></div><div>(in dht_blocking_inodelk_rec function )raise error.</div></div></blockquote><div><br></div><div>Mostly because its a file and inode context is not present on all the subvols? <br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Amar Tumballi (amarts)<br></div></div></div></div></div>
</div></div>