From 2d5d4b0dd01555639c6123b29c21e14921c9f9f2 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 4 Apr 2005 14:14:02 +0000 Subject: [PATCH] Clarified description of EXDEV error with respect to file system mounted at multiple points, as per rename.2 patch from Michael Haardt . --- man2/link.2 | 7 ++++++- man2/rename.2 | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/man2/link.2 b/man2/link.2 index b0ff7cd14..1b6580c79 100644 --- a/man2/link.2 +++ b/man2/link.2 @@ -26,6 +26,7 @@ .\" Modified 1993-07-23 by Rik Faith .\" Modified 1994-08-21 by Michael Haardt .\" Modified 2004-06-23 by Michael Kerrisk +.\" Modified 2004-04-04, as per suggestion by Michael Hardt for rename.2 .\" .TH LINK 2 2004-06-23 "Linux 2.6.7" "Linux Programmer's Manual" .SH NAME @@ -118,7 +119,11 @@ The file is on a read-only filesystem. .TP .B EXDEV .IR oldpath " and " newpath -are not on the same filesystem. +are not on the same mounted filesystem. +(Linux permits a filesystem to be mounted at multiple points, but +.BR link (2) +does not work across different mount points, +even if the same filesystem is mounted on both.) .SH NOTES Hard links, as created by .BR link , diff --git a/man2/rename.2 b/man2/rename.2 index 00022a904..0e5883941 100644 --- a/man2/rename.2 +++ b/man2/rename.2 @@ -26,6 +26,7 @@ .\" .\" Modified Sat Jul 24 00:35:52 1993 by Rik Faith .\" Modified Thu Jun 4 12:21:13 1998 by Andries Brouwer +.\" Modified Thu Mar 3 09:49:35 2005 by Michael Haardt .\" .TH RENAME 2 1998-06-04 "Linux 2.0" "Linux Programmer's Manual" .SH NAME @@ -190,7 +191,11 @@ The file is on a read-only filesystem. .TP .B EXDEV .IR oldpath " and " newpath -are not on the same filesystem. +are not on the same mounted filesystem. +(Linux permits a filesystem to be mounted at multiple points, but +.BR rename (2) +does not work across different mount points, +even if the same filesystem is mounted on both.) .SH "CONFORMING TO" POSIX, 4.3BSD, ANSI C .SH BUGS