GNU bug report logs - #7394
rename() over NFS

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Sat, 13 Nov 2010 23:55:02 UTC

Severity: normal

Tags: patch

Merged with 7389

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: bug-coreutils <at> gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>, bug-gnulib <at> gnu.org,
	Jim Meyering <jim <at> meyering.net>
Subject: Re: rename() over NFS
Date: Sun, 14 Nov 2010 00:58:21 +0100
Eric Blake wrote:
> For now, I'm okay with weakening the testsuite to ignore the NFS bug;
> please apply this patch, but let's also document the bug.

OK. Done like this:


2010-11-13  Bruno Haible  <bruno <at> clisp.org>

	rename, renameat: Document Linux bug with NFS
	<http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
	* doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
	* doc/posix-functions/renameat.texi: Likewise.
	Suggested by Eric Blake.

--- doc/posix-functions/rename.texi.orig	Sun Nov 14 00:55:19 2010
+++ doc/posix-functions/rename.texi	Sun Nov 14 00:50:58 2010
@@ -60,6 +60,11 @@
 @code{ENOTDIR} if either argument is a symlink with a trailing slash:
 glibc, OpenBSD, Cygwin 1.7.
 @item
+After renaming a non-empty directory over an existing empty directory,
+the old directory name is still visible through the @code{stat} function
+for 30 seconds after the rename, on NFS file systems, on some platforms:
+Linux 2.6.18.
+@item
 This function will not rename a source that is currently opened
 by any process:
 mingw.
--- doc/posix-functions/renameat.texi.orig	Sun Nov 14 00:55:19 2010
+++ doc/posix-functions/renameat.texi	Sun Nov 14 00:52:06 2010
@@ -39,6 +39,11 @@
 @code{ENOTDIR} if either argument is a symlink with a trailing slash:
 glibc, OpenBSD, Cygwin 1.7.
 @item
+After renaming a non-empty directory over an existing empty directory,
+the old directory name is still visible through the @code{stat} function
+for 30 seconds after the rename, on NFS file systems, on some platforms:
+Linux 2.6.18.
+@item
 This function will not rename a source that is currently opened
 by any process:
 mingw.




This bug report was last modified 12 years and 298 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.