Bug 603707

Summary: cifs: busy file renames across directories should fail with error
Product: Red Hat Enterprise Linux 6 Reporter: Jeff Layton <jlayton>
Component: kernelAssignee: Jeff Layton <jlayton>
Status: CLOSED CURRENTRELEASE QA Contact: yanfu,wang <yanwang>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: ddumas, jlayton, rwheeler, sprabhu, steved, syeghiay, tao, yanwang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 603706 Environment:
Last Closed: 2010-11-11 15:53:38 UTC Type: ---
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: 591938, 603706    

Comment 1 RHEL Program Management 2010-06-14 12:43:01 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Aristeu Rozanski 2010-07-01 16:23:08 UTC
Patch(es) available on kernel-2.6.32-42.el6

Comment 6 yanfu,wang 2010-09-02 03:28:47 UTC
I verified on rhel6-snaphshot13 but still got 'Text file busy' error using the reproducer:

[root@amd-dinar-03 test]# uname -a
Linux amd-dinar-03.lab.bos.redhat.com 2.6.32-70.el6.i686 #1 SMP Wed Aug 25 10:10:17 EDT 2010 i686 i686 i386 GNU/Linux

win2k3 share dir is temp:
[root@amd-dinar-03 test]# mount
...
//10.66.65.54/temp/ on /mnt/test type cifs (rw,mand)

[root@amd-dinar-03 test]# ls -l        
total 0
-rwxr-xr-x. 1 root root 3890 Jan 24  2011 aa
drwxr-xr-x. 1 root root    0 Jan 24  2011 done
[root@amd-dinar-03 test]# mv aa done/bb
mv: cannot move `aa' to `done/bb': Text file busy

Comment 7 Jeff Layton 2010-09-02 10:47:19 UTC
That's expected. The error is expected when the file is open and you try to rename it across directories. The bug was that the file would be renamed but would stay in the original directory.

Comment 8 Ric Wheeler 2010-09-02 13:43:06 UTC
This works as we expect it to work. Can we please sync up on the test case and make sure that this is resolved?

Thanks!

Comment 9 Denise Dumas 2010-09-02 13:50:37 UTC
Based on above comments, moving back to on-qa

Comment 10 yanfu,wang 2010-09-03 07:20:50 UTC
verified on i386 and x86_64 on rhel6-snaphshot13, the results same as comment #6 and comment #7.

Comment 11 releng-rhel@redhat.com 2010-11-11 15:53:38 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.