Bug 997026 - nfs: rename from a windows nfs mount creates a new file
Summary: nfs: rename from a windows nfs mount creates a new file
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-nfs
Version: 2.1
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Niels de Vos
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-14 13:57 UTC by Saurabh
Modified: 2016-01-19 06:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-27 09:11:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Saurabh 2013-08-14 13:57:12 UTC
Description of problem:
Tried to rename a file from a windows nfs client, earlier created from a nfs mount on a RHEL client.
It created one more new file with the new name.

whereas kernel-nfs refused to rename.

Version-Release number of selected component (if applicable):
[root@rhsauto032 ~]# rpm -qa | grep glusterfs
glusterfs-api-3.4.0.17rhs-1.el6rhs.x86_64
glusterfs-3.4.0.17rhs-1.el6rhs.x86_64
glusterfs-geo-replication-3.4.0.17rhs-1.el6rhs.x86_64
glusterfs-libs-3.4.0.17rhs-1.el6rhs.x86_64
samba-glusterfs-3.6.9-156.2.el6rhs.x86_64
glusterfs-fuse-3.4.0.17rhs-1.el6rhs.x86_64
glusterfs-server-3.4.0.17rhs-1.el6rhs.x86_64
glusterfs-rdma-3.4.0.17rhs-1.el6rhs.x86_64


How reproducible:
always

Steps to Reproduce:
1. mount the volume over RHEL client using nfs,
2. create a volume
-rw-r--r--. 2 root root  0 Aug 14 06:51 c


3. mount the volume over windows using nfs

4. try renaming file "c" from windows nfs client,
-rw-r--r--. 2 root root  0 Aug 14 06:51 c
-rw-r--r--. 2 root root  0 Aug 14 06:51 c-rename

Actual results:

a new file is created with root credentials
also if I write something in the file "c", gets reflected in file "c-rename".

Expected results:
whereas once you try to create a new file in the mountpoint it fails because of permission issues to nfs client on windows.

Also, kernel don't even allow the rename to succeed.

Additional info:

Comment 4 Niels de Vos 2015-11-27 09:11:25 UTC
Looks like specific behaviour of Windows NFS. I do not believe we can fix that on the NFS-server side.


Note You need to log in before you can comment on or make changes to this bug.