Red Hat Bugzilla – Bug 603707
cifs: busy file renames across directories should fail with error
Last modified: 2014-06-18 03:40:09 EDT
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
Patch(es) available on kernel-2.6.32-42.el6
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
-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
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.
This works as we expect it to work. Can we please sync up on the test case and make sure that this is resolved?
Based on above comments, moving back to on-qa
verified on i386 and x86_64 on rhel6-snaphshot13, the results same as comment #6 and comment #7.
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.