<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On Monday 14 July 2014 09:10 PM,
      Pranith Kumar Karampuri wrote:<br>
    </div>
    <blockquote cite="mid:53C3F9D6.3030407@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      CCed Raghavendra Bhat who may know about the issue<br>
      <br>
      Pranith<br>
      <div class="moz-cite-prefix">On 07/14/2014 08:01 PM, Joe Julian
        wrote:<br>
      </div>
      <blockquote
        cite="mid:44d9c6ee-a08d-467c-ba0b-9ed971f08062@email.android.com"
        type="cite"><a moz-do-not-send="true"
          href="https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS">https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS</a><br>
        <br>
        Please file a bug report.<br>
        <br>
        <div class="gmail_quote">On July 14, 2014 12:38:11 AM PDT, David
          Raffelt <a moz-do-not-send="true"
            class="moz-txt-link-rfc2396E"
            href="mailto:d.raffelt@brain.org.au">&lt;d.raffelt@brain.org.au&gt;</a>
          wrote:
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div dir="ltr">Hi All,
              <div>After a recent update to gluster 3.5 we are having
                some issues renaming files when root squashing is
                enabled and the folder group permissions are not set to
                write.&nbsp;</div>
              <div><br>
              </div>
              <div>For example if I create a folder with the following
                permissions</div>
              <div><font face="courier new, monospace">$ mkdir test</font></div>
              <div><font face="courier new, monospace">$ chmod g-w test</font></div>
              <div><font face="courier new, monospace">$ ls -l&nbsp;</font></div>
              <div>
                <div><font face="courier new, monospace">drwxr-xr-x &nbsp;2
                    dave dave &nbsp;22 Jul 14 17:16 test</font></div>
              </div>
              <div><br>
              </div>
              <div>When I create a file <i>within</i> this folder, and
                try to rename it I get a file permissions error.&nbsp;</div>
              <div><br>
              </div>
              <div><font face="courier new, monospace">$ cd test</font></div>
              <div><font face="courier new, monospace">$ touch asdf</font></div>
              <div><font face="courier new, monospace">$ mv asdf asdf2</font></div>
              <div>
                <div><font face="courier new, monospace">mv: cannot move
                    &#8216;asdf&#8217; to &#8216;asdf2&#8217;: Permission denied</font></div>
              </div>
              <div><br>
              </div>
              <div>A strace on the mv command reveals the rename system
                call fails with:</div>
              <div>
                <div><font face="courier new, monospace">rename("asdf",
                    "asdf2") = -1 EACCES (Permission denied)</font></div>
              </div>
              <div><br>
              </div>
              <div>However I can copy the file and delete the old one
                fine.&nbsp;</div>
              <div><br>
              </div>
              <div>If I either disable gluster root squashing, or change
                the test_dir folder group permission to write then I can
                rename the file without any problems.</div>
              <div><br>
              </div>
              <div>System details are:<br>
              </div>
              <div>Arch linux</div>
              <div>System umask is set to 002<br>
              </div>
              <div>Distributed volume, 3 peers, 1 brick per peer.&nbsp;</div>
              <div><br>
              </div>
              <div>Any help is much appreciated!</div>
              <div>Dave</div>
              <div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </blockquote>
    </blockquote>
    <br>
    Hi Dave,<br>
    <br>
    Can you please provide the brick and client log files? Which client
    you were using? fuse or nfs?<br>
    <br>
    Regards,<br>
    Raghavendra Bhat<br>
    <br>
    <blockquote cite="mid:53C3F9D6.3030407@redhat.com" type="cite">
      <blockquote
        cite="mid:44d9c6ee-a08d-467c-ba0b-9ed971f08062@email.android.com"
        type="cite">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div dir="ltr">
              <div>
                <div> </div>
              </div>
            </div>
            <pre class="k9mail"><hr>
Gluster-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
          </blockquote>
        </div>
        <br>
        -- <br>
        Sent from my Android device with K-9 Mail. Please excuse my
        brevity. <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>