]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
errno-list: filter out EFSBADCRC and EFSCORRUPTED
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Feb 2026 11:19:45 +0000 (20:19 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 21:57:05 +0000 (21:57 +0000)
These are introduced in kernel v7.0.

(cherry picked from commit 3cfb16998808a6ec8012a6120d0a82f0e1a0c8bb)
(cherry picked from commit f870952f69c453aeef0b4022d32bba4769d84238)
(cherry picked from commit 73e2fa308cfa49f599e104e599e1a479fd3d21e3)

src/basic/generate-errno-list.sh

index f756b2e020834d5ec10f7c05177213f8d1595c97..491fa1b6e3b87676e10a47220c195493d4e0047f 100755 (executable)
@@ -3,9 +3,13 @@
 set -eu
 set -o pipefail
 
-# In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of
-# ECANCELED and ECONNREFUSED, respectively. Let's drop them.
+# In kernel's arch/parisc/include/uapi/asm/errno.h, The following aliases are defined:
+# ECANCELLED → ECANCELED
+# EREFUSED → ECONNREFUSED
+# EFSBADCRC → EBADMSG
+# EFSCORRUPTED → EUCLEAN
+# Let's drop them.
 
 ${1:?} -dM -include errno.h - </dev/null | \
-       grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED)' | \
+       grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED|EFSBADCRC|EFSCORRUPTED)' | \
        awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'