<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2020 at 7:16 PM David Spisla &lt;<a href="mailto:spisla80@gmail.com">spisla80@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Gluster Community,</div><div>in worm_create_cbk a file gets the xattr &quot;trusted.worm_file&quot; and &quot;trusted.start_time&quot; if worm-file-level is enabled. Now I want to exclude some files in a special folder from the WORM function. Therefore I want to check in worm_create_cbk if the file is in this folder or not. But I don&#39;t find a parameter where the filepath is stored. So my alternative solution was, to check it in worm_create (via loc-&gt;path) and store a boolean value in frame-&gt;local. This boolean value will be used in worm_create_cbk later. But its not my favourite solution.</div><div> <br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>Do you know how to get the filepath in the cbk function?</div><div><br></div></div></blockquote><div><br></div><div>As per FS guidelines, inside the filesystem, we need to handle inodes or parent-inode + basename. If you are looking at building a &#39;path&#39; info in create_cbk, then i recommend using &#39;inode_path()&#39; to build the path as per the latest inode table information.  </div><div><br></div><div>-Amar</div></div><br clear="all"><div><br></div>-- <div dir="ltr" class="gmail_signature"><div dir="ltr"><div><a href="https://kadalu.io" target="_blank">https://kadalu.io</a></div><div>Container Storage made easy!</div><div><br></div></div></div></div>