This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [PATCH] [BZ 14256] Fix ESTALE error message


On 05/23/2013 03:47 PM, Carlos O'Donell wrote:
On 05/23/2013 04:14 PM, Jeff Law wrote:
Here we go.  manual/errno.texi updated with sysdeps/gnu/errlist.c regenerated.

This change doesn't do what your original change did.
Arggh.  So this time properly.

First the smoke test. Not doing this the first time around was clearly careless on my part.


[law@stumpy glibc]$ ./foo
Error is : Stale NFS file handle
[law@stumpy glibc]$ LD_LIBRARY_PATH=./ elf/ld.so ./foo
Error is : Stale file handle



In the original change you actually changed the error
message, here you just change the documentation.

commit 53c81e693b7ae49cfa103fe164ac3c378050467f
Author: Jeff Law <law@redhat.com>
Date:   Thu May 23 13:28:00 2013 -0600

            [BZ #14256]

             * manual/errlist.texi (ESTALE): Update to account for more than

It's manual/errno.texi.
Fixed.



You missed changing the comment which is parsed to generate the message.
Correct.

Updated patch attached.

Thanks,
jeff
commit e4ddb569b7102f5b9621f3679cfee95e5d391ae6
Author: Jeff Law <law@redhat.com>
Date:   Thu May 23 13:28:00 2013 -0600

           [BZ #14256]
            * manual/errno.texi (ESTALE): Update to account for more than
            just NFS file systems.
            * sysdeps/gnu/errlist.c: Regenerated.

diff --git a/ChangeLog b/ChangeLog
index a0387bd..2ea76eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-23  Jeff Law  <law@redhat.com>
+
+	[BZ #14256]
+	* manual/errno.texi (ESTALE): Update to account for more than
+	just NFS file systems.
+	* sysdeps/gnu/errlist.c: Regenerated.
+
 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
 
 	[BZ #14894]
diff --git a/NEWS b/NEWS
index 152e7a4..68407ae 100644
--- a/NEWS
+++ b/NEWS
@@ -10,15 +10,15 @@ Version 2.18
 * The following bugs are resolved with this release:
 
   2546, 2560, 5159, 6809, 10060, 10062, 10357, 10686, 11120, 11561, 12387,
-  12723, 13550, 13889, 13951, 13988, 14142, 14176, 14200, 14280, 14293,
-  14317, 14327, 14478, 14496, 14582, 14686, 14812, 14888, 14908, 14920,
-  14952, 14964, 14981, 14982, 14985, 14994, 14996, 15000, 15003, 15006,
-  15007, 15014, 15020, 15023, 15036, 15054, 15055, 15062, 15078, 15084,
-  15085, 15086, 15160, 15214, 15221, 15232, 15234, 15283, 15285, 15287,
-  15304, 15305, 15307, 15309, 15327, 15330, 15335, 15336, 15337, 15339,
-  15342, 15346, 15359, 15361, 15366, 15380, 15394, 15395, 15405, 15406,
-  15409, 15416, 15418, 15419, 15423, 15424, 15426, 15429, 15441, 15442,
-  15448, 15480, 15485, 15488, 15490, 15493, 15497, 15506.
+  12723, 13550, 13889, 13951, 13988, 14142, 14176, 14200, 14256, 14280,
+  14293, 14317, 14327, 14478, 14496, 14582, 14686, 14812, 14888, 14908,
+  14920, 14952, 14964, 14981, 14982, 14985, 14994, 14996, 15000, 15003,
+  15006, 15007, 15014, 15020, 15023, 15036, 15054, 15055, 15062, 15078,
+  15084, 15085, 15086, 15160, 15214, 15221, 15232, 15234, 15283, 15285,
+  15287, 15304, 15305, 15307, 15309, 15327, 15330, 15335, 15336, 15337,
+  15339, 15342, 15346, 15359, 15361, 15366, 15380, 15394, 15395, 15405,
+  15406, 15409, 15416, 15418, 15419, 15423, 15424, 15426, 15429, 15441,
+  15442, 15448, 15480, 15485, 15488, 15490, 15493, 15497, 15506.
 
 * CVE-2013-0242 Buffer overrun in regexp matcher has been fixed (Bugzilla
   #15078).
diff --git a/manual/errno.texi b/manual/errno.texi
index 2a3c004..6c9fa86 100644
--- a/manual/errno.texi
+++ b/manual/errno.texi
@@ -739,13 +739,14 @@ The user's disk quota was exceeded.
 @end deftypevr
 
 @comment errno.h
-@comment BSD: Stale NFS file handle
+@comment BSD: Stale file handle
 @deftypevr Macro int ESTALE
 @comment errno 70 @c DO NOT REMOVE
-Stale NFS file handle.  This indicates an internal confusion in the NFS
-system which is due to file system rearrangements on the server host.
-Repairing this condition usually requires unmounting and remounting
-the NFS file system on the local host.
+Stale file handle.  This indicates an internal confusion in the
+file system which is due to file system rearrangements on the server host
+for NFS file systems or corruption in other file systems.
+Repairing this condition usually requires unmounting, possibly repairing
+and remounting the file system.
 @end deftypevr
 
 @comment errno.h
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index e3d2faf..bbd45f2 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -780,11 +780,12 @@ TRANS The user's disk quota was exceeded. */
 #endif
 #ifdef ESTALE
 /*
-TRANS Stale NFS file handle.  This indicates an internal confusion in the NFS
-TRANS system which is due to file system rearrangements on the server host.
-TRANS Repairing this condition usually requires unmounting and remounting
-TRANS the NFS file system on the local host. */
-    [ERR_REMAP (ESTALE)] = N_("Stale NFS file handle"),
+TRANS Stale file handle.  This indicates an internal confusion in the
+TRANS file system which is due to file system rearrangements on the server host
+TRANS for NFS file systems or corruption in other file systems.
+TRANS Repairing this condition usually requires unmounting, possibly repairing
+TRANS and remounting the file system. */
+    [ERR_REMAP (ESTALE)] = N_("Stale file handle"),
 # if ESTALE > ERR_MAX
 # undef ERR_MAX
 # define ERR_MAX ESTALE

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