[Bugs] [Bug 1543996] truncates read-only files on copy

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 5 13:17:20 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1543996

Kaleb KEITHLEY <kkeithle at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ganesha-nfs                 |posix-acl
           Assignee|kkeithle at redhat.com         |bugs at gluster.org



--- Comment #5 from Kaleb KEITHLEY <kkeithle at redhat.com> ---
I looked at this "briefly."

When copying a 0444 file over gluster native/fuse, the destination file is
created with open(...,O_CREAT)* and has acl perms that allow the open() to
succeed.

But when copying the same file over NFS (nfs-ganesha, fsal_gluster, gfapi) the
file is created with creat() (create fop) and has insufficient acl perms to
allow the creat() to succeed.

In the time that I spent looking at it I was unable to find where in gluster
those initial acl perms come from or why open(...,O_CREAT) has different
default perms than creat().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list