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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Bruno Haible <bruno@HIDDEN>; Keywords: patch; merged with #7389; dated Sat, 13 Nov 2010 23:55:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Added tag(s) patch. Request was from era eriksson <era@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 7389 7394. Request was from era eriksson <era@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Nov 2010 23:54:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 13 18:54:36 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PHPvX-0006yY-6A
	for submit <at> debbugs.gnu.org; Sat, 13 Nov 2010 18:54:36 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <bruno@HIDDEN>) id 1PHPvS-0006yT-6Z
	for submit <at> debbugs.gnu.org; Sat, 13 Nov 2010 18:54:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@HIDDEN>) id 1PHQ06-00013o-JR
	for submit <at> debbugs.gnu.org; Sat, 13 Nov 2010 18:59:23 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:41374)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@HIDDEN>) id 1PHQ06-00013k-HK
	for submit <at> debbugs.gnu.org; Sat, 13 Nov 2010 18:59:18 -0500
Received: from [140.186.70.92] (port=51696 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PHPzt-0000RL-9K
	for bug-coreutils@HIDDEN; Sat, 13 Nov 2010 18:59:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@HIDDEN>) id 1PHPzg-0000vo-5r
	for bug-coreutils@HIDDEN; Sat, 13 Nov 2010 18:59:05 -0500
Received: from mo-p00-ob.rzone.de ([81.169.146.161]:37431)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@HIDDEN>)
	id 1PHPzK-0000pe-4p; Sat, 13 Nov 2010 18:58:30 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1289692707; l=1692;
	s=domk; d=haible.de;
	h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:
	References:Cc:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH;
	bh=PmcYz16iO6gQOPmFEF9LpoTDeu8=;
	b=QgudHkP2vyjb94SbPrElAb90mdLxVyBm6I320XfSY5i+1y1NKqstl0ImKyF/CPtewNB
	HB5/QZktqOpKnUTlGBTTSPZzZPwDhnF5mQJpUx6y0pPNyePL3Kxq8lTq4raBOYK1gy2ZB
	U/f/OqnuTv1aa6Hx/E73SNtoOlL0OSerEP8=
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDJRaPAi/IaFpUs=
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-069-164-180.pools.arcor-ip.net [88.69.164.180])
	by post.strato.de (klopstock mo41) (RZmta 24.4)
	with ESMTP id i02a70mADKnZiL ; Sun, 14 Nov 2010 00:58:24 +0100 (MET)
From: Bruno Haible <bruno@HIDDEN>
To: Eric Blake <eblake@HIDDEN>
Subject: Re: rename() over NFS
Date: Sun, 14 Nov 2010 00:58:21 +0100
User-Agent: KMail/1.9.9
References: <1286899722-20690-1-git-send-email-gary@HIDDEN>
	<201011131513.17364.bruno@HIDDEN> <4CDF0277.3040509@HIDDEN>
In-Reply-To: <4CDF0277.3040509@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201011140058.23270.bruno@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
Cc: bug-coreutils@HIDDEN, Paul Eggert <eggert@HIDDEN>, bug-gnulib@HIDDEN,
	Jim Meyering <jim@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

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@HIDDEN>

	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.




Acknowledgement sent to Bruno Haible <bruno@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#7394; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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