]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: use consistent message for ESTALE on Linux
authorIan Lance Taylor <iant@golang.org>
Fri, 17 Jan 2025 17:59:50 +0000 (09:59 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Feb 2025 20:11:17 +0000 (12:11 -0800)
For some reason the ESTALE error message differed on Linux systems.
On Linux strerror normally returns "Stale file handle" for ESTALE,
except possibly in the en_GB locale. The mkerrors.sh script sets
LC_ALL=C, so it should always produces "stale file handle".
However, for some reason, several targets use "stale NFS file handle"
instead.

Clean this up so that we use the same string on all Linux systems.
This is also consistent with golang.org/x/sys/unix.

Fixes #71309

Change-Id: Ic2ffaf114c85112bc6d0831e43dd5fd2f4237bc2
Reviewed-on: https://go-review.googlesource.com/c/go/+/643335
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/zerrors_linux_386.go
src/syscall/zerrors_linux_amd64.go
src/syscall/zerrors_linux_arm.go
src/syscall/zerrors_linux_mips64.go
src/syscall/zerrors_linux_mips64le.go
src/syscall/zerrors_linux_ppc64.go

index 9d4ecdeb698056450f31713bc798b94d72e041ee..05b621a2cc51d7c3441e73c5b68434a93d3e40b4 100644 (file)
@@ -1467,7 +1467,7 @@ var errors = [...]string{
        113: "no route to host",
        114: "operation already in progress",
        115: "operation now in progress",
-       116: "stale NFS file handle",
+       116: "stale file handle",
        117: "structure needs cleaning",
        118: "not a XENIX named type file",
        119: "no XENIX semaphores available",
index a8b67801e6936f31d544cbb0610e71d470089102..8bc322a707e8a25d42afba71b985e0df3eece1a5 100644 (file)
@@ -1468,7 +1468,7 @@ var errors = [...]string{
        113: "no route to host",
        114: "operation already in progress",
        115: "operation now in progress",
-       116: "stale NFS file handle",
+       116: "stale file handle",
        117: "structure needs cleaning",
        118: "not a XENIX named type file",
        119: "no XENIX semaphores available",
index 285d26a5618e136179e989dc838269a3508e8b16..ccbea5f287d6be367726cfb1ef3af7e82a023783 100644 (file)
@@ -1480,7 +1480,7 @@ var errors = [...]string{
        113: "no route to host",
        114: "operation already in progress",
        115: "operation now in progress",
-       116: "stale NFS file handle",
+       116: "stale file handle",
        117: "structure needs cleaning",
        118: "not a XENIX named type file",
        119: "no XENIX semaphores available",
index 6953c92484bc6ac726923a92acbde9e636042594..7d505c7bb056181c51d484e761a6d1df4293223c 100644 (file)
@@ -1744,7 +1744,7 @@ var errors = [...]string{
        148:  "no route to host",
        149:  "operation already in progress",
        150:  "operation now in progress",
-       151:  "stale NFS file handle",
+       151:  "stale file handle",
        158:  "operation canceled",
        159:  "no medium found",
        160:  "wrong medium type",
index 6953c92484bc6ac726923a92acbde9e636042594..7d505c7bb056181c51d484e761a6d1df4293223c 100644 (file)
@@ -1744,7 +1744,7 @@ var errors = [...]string{
        148:  "no route to host",
        149:  "operation already in progress",
        150:  "operation now in progress",
-       151:  "stale NFS file handle",
+       151:  "stale file handle",
        158:  "operation canceled",
        159:  "no medium found",
        160:  "wrong medium type",
index f0661a244556c69f44076ac9c5fa1a71e2e830f0..fba5353b3e4b1626d2717b1c3ebbcfa606b7c74d 100644 (file)
@@ -1800,7 +1800,7 @@ var errors = [...]string{
        113: "no route to host",
        114: "operation already in progress",
        115: "operation now in progress",
-       116: "stale NFS file handle",
+       116: "stale file handle",
        117: "structure needs cleaning",
        118: "not a XENIX named type file",
        119: "no XENIX semaphores available",