Bug 981318

Summary: File rename creates a new file with same name on windows client
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Ujjwala <ujjwala>
Component: sambaAssignee: Raghavendra Talur <rtalur>
Status: CLOSED ERRATA QA Contact: surabhi <sbhaloth>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: amarts, rtalur, sdharane, spalai, surs, vagarwal
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.15rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 990410 (view as bug list) Environment:
Last Closed: 2013-09-23 22:29:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 956495, 990410    
Attachments:
Description Flags
screenshot of the windows explorer window none

Description Ujjwala 2013-07-04 12:59:42 UTC
Created attachment 768797 [details]
screenshot of the windows explorer window

Description of problem:
On the windows client, when you rename a file and save it, it creates a new file.
While the new file shows the correct size, the old file is a 0Kb file.


Version-Release number of selected component (if applicable):
glusterfs 3.4.0.12rhs.beta1

How reproducible:
Always

Steps to Reproduce:
1. Create a distribute volume.
2.Create a Samba-VFS share for the distribute volume in the /etc/samba/smb.conf file.
3. Map the share on the windows client. Create some files.
4. Access the share via windows explorer, right click -> New -> New Text document.
5. A new text file is created, rename the file say abc.txt. Open the file and edit it and save the file. A new file is created with the same name.  

Actual results:
While the new file shows the actual size of the file, the old file is a 0Kb file.

Expected results:
should not create a new file. The same file should be updated.

Additional info:

Comment 5 surabhi 2013-08-07 08:40:02 UTC
The bug is verified in the version glusterfs-3.4.0.16rhs-1.el6rhs.x86_64.

Comment 7 Scott Haines 2013-09-23 22:29:50 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. 

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1262.html