This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

external/1502: rename ("foo", "nonemptybar") on NFS gets EBUSY with Linux Kernel


>Number:         1502
>Category:       external
>Synopsis:       rename ("foo", "nonemptybar") on NFS gets EBUSY with Linux Kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          external
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 08 19:18:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Apparently:

$ mkdir foo
$ mkdir bar
$ $ cat ~/tmp/rename.c 
#include <stdio.h>
#include <errno.h>
main ()
{
  errno = 0;
  rename ("foo", "bar");
  printf ("errno %d\n", errno);
}
$ cc rename.c -o rename
$ ./rename
errno 16

Reports EBUSY on an NFS file system, and (the more correct) ENOTEMPTY on a local file system.

Apparently still present in current 2.6 Linux Kernel.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]