mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
openat2: introduce EFTYPE error code
Introduce a new error code EFTYPE for wrong file type operations. EFTYPE is already used in BSD systems like FreeBSD and macOS. This will be used by the upcoming OPENAT2_REGULAR flag support to return a specific error when a path doesn't refer to a regular file. Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com> Link: https://patch.msgid.link/20260328172314.45807-2-dorjoychy111@gmail.com Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Aleksa Sarai <aleksa@amutable.com> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
09e8b7a428
commit
cf1b04aaef
|
|
@ -127,4 +127,6 @@
|
|||
|
||||
#define EHWPOISON 139 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 140 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -126,6 +126,8 @@
|
|||
|
||||
#define EHWPOISON 168 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 169 /* Wrong file type for the intended operation */
|
||||
|
||||
#define EDQUOT 1133 /* Quota exceeded */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -124,4 +124,6 @@
|
|||
|
||||
#define EHWPOISON 257 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 258 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -117,4 +117,6 @@
|
|||
|
||||
#define EHWPOISON 135 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 136 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -122,4 +122,6 @@
|
|||
|
||||
#define EHWPOISON 133 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 134 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -127,4 +127,6 @@
|
|||
|
||||
#define EHWPOISON 139 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 140 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -126,6 +126,8 @@
|
|||
|
||||
#define EHWPOISON 168 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 169 /* Wrong file type for the intended operation */
|
||||
|
||||
#define EDQUOT 1133 /* Quota exceeded */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -124,4 +124,6 @@
|
|||
|
||||
#define EHWPOISON 257 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 258 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -117,4 +117,6 @@
|
|||
|
||||
#define EHWPOISON 135 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 136 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -122,4 +122,6 @@
|
|||
|
||||
#define EHWPOISON 133 /* Memory page has hardware error */
|
||||
|
||||
#define EFTYPE 134 /* Wrong file type for the intended operation */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user