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

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 9 19:11:20 UTC 2018


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

            Bug ID: 1543996
           Summary: truncates read-only files on copy
           Product: GlusterFS
           Version: 3.12
         Component: ganesha-nfs
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: rik.theys at esat.kuleuven.be
                CC: bugs at gluster.org



Description of problem:

When a gluster volume is exported over NFS (tried both kernel nfs and nfs
ganesha) and a client copies data onto the NFS mounted filesystem, it shows an
error when copying a file that only has read rights for the owner and the file
is not correctly copied. It is only 0 bytes long on the target.

I've assigned this bug to nfs-ganesha but I don't think this is ganesha
specific as I can reproduce the problem when the gluster filesystem is exported
using kernel nfs.

Version-Release number of selected component (if applicable):
gluster 3.12.5 (fedora 27 packages)


How reproducible:
Always

Steps to Reproduce:
1. Create a gluster volume and export it over NFS using either nfs-ganesha or
kernel nfs
2. Mount it on a client and as a regular user execute the following commands on
the nfs-mounted filesystem:

mkdir source
dd if=/dev/zero of=source/testfile-rw bs=1M count=2
chmod 600 source/testfile-rw
cp source/testfile-rw source/testfile-ro
chmod 400 source/testfile-ro
cp -ar source target

3. the cp command will show: 
cp: failed to close ‘target/testfile-ro’: Permission denied

Actual results:
The above error message is shown and the target/testfile-ro file is now 0 bytes
long.

Expected results:
No error message and the file copied correctly.

Additional info:
When the client uses the fuse client to mount the glusterfs filesystem, this
works correctly.

-- 
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