<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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 class="moz-txt-link-rfc2396E" href="mailto:d.raffelt@brain.org.au"><d.raffelt@brain.org.au></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. </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 </font></div>
<div>
<div><font face="courier new, monospace">drwxr-xr-x 2
dave dave 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. </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
‘asdf’ to ‘asdf2’: 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. </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. </div>
<div><br>
</div>
<div>Any help is much appreciated!</div>
<div>Dave</div>
<div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<pre class="k9mail"><hr>
Gluster-users mailing list
<a 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 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>