Lines Matching +full:- +full:eproto

1 // SPDX-License-Identifier: GPL-2.0-or-later
22 case 13: return -EACCES; in afs_abort_to_error()
23 case 27: return -EFBIG; in afs_abort_to_error()
24 case 30: return -EROFS; in afs_abort_to_error()
26 /* VICE "special error" codes; 101 - 111 */ in afs_abort_to_error()
27 case VSALVAGE: return -EIO; in afs_abort_to_error()
28 case VNOVNODE: return -ENOENT; in afs_abort_to_error()
29 case VNOVOL: return -ENOMEDIUM; in afs_abort_to_error()
30 case VVOLEXISTS: return -EEXIST; in afs_abort_to_error()
31 case VNOSERVICE: return -EIO; in afs_abort_to_error()
32 case VOFFLINE: return -ENOENT; in afs_abort_to_error()
33 case VONLINE: return -EEXIST; in afs_abort_to_error()
34 case VDISKFULL: return -ENOSPC; in afs_abort_to_error()
35 case VOVERQUOTA: return -EDQUOT; in afs_abort_to_error()
36 case VBUSY: return -EBUSY; in afs_abort_to_error()
37 case VMOVED: return -ENXIO; in afs_abort_to_error()
40 case AFSVL_IDEXIST: return -EEXIST; in afs_abort_to_error()
41 case AFSVL_IO: return -EREMOTEIO; in afs_abort_to_error()
42 case AFSVL_NAMEEXIST: return -EEXIST; in afs_abort_to_error()
43 case AFSVL_CREATEFAIL: return -EREMOTEIO; in afs_abort_to_error()
44 case AFSVL_NOENT: return -ENOMEDIUM; in afs_abort_to_error()
45 case AFSVL_EMPTY: return -ENOMEDIUM; in afs_abort_to_error()
46 case AFSVL_ENTDELETED: return -ENOMEDIUM; in afs_abort_to_error()
47 case AFSVL_BADNAME: return -EINVAL; in afs_abort_to_error()
48 case AFSVL_BADINDEX: return -EINVAL; in afs_abort_to_error()
49 case AFSVL_BADVOLTYPE: return -EINVAL; in afs_abort_to_error()
50 case AFSVL_BADSERVER: return -EINVAL; in afs_abort_to_error()
51 case AFSVL_BADPARTITION: return -EINVAL; in afs_abort_to_error()
52 case AFSVL_REPSFULL: return -EFBIG; in afs_abort_to_error()
53 case AFSVL_NOREPSERVER: return -ENOENT; in afs_abort_to_error()
54 case AFSVL_DUPREPSERVER: return -EEXIST; in afs_abort_to_error()
55 case AFSVL_RWNOTFOUND: return -ENOENT; in afs_abort_to_error()
56 case AFSVL_BADREFCOUNT: return -EINVAL; in afs_abort_to_error()
57 case AFSVL_SIZEEXCEEDED: return -EINVAL; in afs_abort_to_error()
58 case AFSVL_BADENTRY: return -EINVAL; in afs_abort_to_error()
59 case AFSVL_BADVOLIDBUMP: return -EINVAL; in afs_abort_to_error()
60 case AFSVL_IDALREADYHASHED: return -EINVAL; in afs_abort_to_error()
61 case AFSVL_ENTRYLOCKED: return -EBUSY; in afs_abort_to_error()
62 case AFSVL_BADVOLOPER: return -EBADRQC; in afs_abort_to_error()
63 case AFSVL_BADRELLOCKTYPE: return -EINVAL; in afs_abort_to_error()
64 case AFSVL_RERELEASE: return -EREMOTEIO; in afs_abort_to_error()
65 case AFSVL_BADSERVERFLAG: return -EINVAL; in afs_abort_to_error()
66 case AFSVL_PERM: return -EACCES; in afs_abort_to_error()
67 case AFSVL_NOMEM: return -EREMOTEIO; in afs_abort_to_error()
70 case UAEPERM: return -EPERM; in afs_abort_to_error()
71 case UAENOENT: return -ENOENT; in afs_abort_to_error()
72 case UAEAGAIN: return -EAGAIN; in afs_abort_to_error()
73 case UAEACCES: return -EACCES; in afs_abort_to_error()
74 case UAEBUSY: return -EBUSY; in afs_abort_to_error()
75 case UAEEXIST: return -EEXIST; in afs_abort_to_error()
76 case UAENOTDIR: return -ENOTDIR; in afs_abort_to_error()
77 case UAEISDIR: return -EISDIR; in afs_abort_to_error()
78 case UAEFBIG: return -EFBIG; in afs_abort_to_error()
79 case UAENOSPC: return -ENOSPC; in afs_abort_to_error()
80 case UAEROFS: return -EROFS; in afs_abort_to_error()
81 case UAEMLINK: return -EMLINK; in afs_abort_to_error()
82 case UAEDEADLK: return -EDEADLK; in afs_abort_to_error()
83 case UAENAMETOOLONG: return -ENAMETOOLONG; in afs_abort_to_error()
84 case UAENOLCK: return -ENOLCK; in afs_abort_to_error()
85 case UAENOTEMPTY: return -ENOTEMPTY; in afs_abort_to_error()
86 case UAELOOP: return -ELOOP; in afs_abort_to_error()
87 case UAEOVERFLOW: return -EOVERFLOW; in afs_abort_to_error()
88 case UAENOMEDIUM: return -ENOMEDIUM; in afs_abort_to_error()
89 case UAEDQUOT: return -EDQUOT; in afs_abort_to_error()
92 case RXKADINCONSISTENCY: return -EPROTO; in afs_abort_to_error()
93 case RXKADPACKETSHORT: return -EPROTO; in afs_abort_to_error()
94 case RXKADLEVELFAIL: return -EKEYREJECTED; in afs_abort_to_error()
95 case RXKADTICKETLEN: return -EKEYREJECTED; in afs_abort_to_error()
96 case RXKADOUTOFSEQUENCE: return -EPROTO; in afs_abort_to_error()
97 case RXKADNOAUTH: return -EKEYREJECTED; in afs_abort_to_error()
98 case RXKADBADKEY: return -EKEYREJECTED; in afs_abort_to_error()
99 case RXKADBADTICKET: return -EKEYREJECTED; in afs_abort_to_error()
100 case RXKADUNKNOWNKEY: return -EKEYREJECTED; in afs_abort_to_error()
101 case RXKADEXPIRED: return -EKEYEXPIRED; in afs_abort_to_error()
102 case RXKADSEALEDINCON: return -EKEYREJECTED; in afs_abort_to_error()
103 case RXKADDATALEN: return -EKEYREJECTED; in afs_abort_to_error()
104 case RXKADILLEGALLEVEL: return -EKEYREJECTED; in afs_abort_to_error()
106 case RXGEN_OPCODE: return -ENOTSUPP; in afs_abort_to_error()
108 default: return -EREMOTEIO; in afs_abort_to_error()
119 e->aborted = false; in afs_prioritise_error()
120 e->error = 0; in afs_prioritise_error()
123 if (e->error == -ETIMEDOUT || in afs_prioritise_error()
124 e->error == -ETIME) in afs_prioritise_error()
127 case -ETIMEDOUT: in afs_prioritise_error()
128 case -ETIME: in afs_prioritise_error()
129 if (e->error == -ENOMEM || in afs_prioritise_error()
130 e->error == -ENONET) in afs_prioritise_error()
133 case -ENOMEM: in afs_prioritise_error()
134 case -ENONET: in afs_prioritise_error()
135 if (e->error == -ERFKILL) in afs_prioritise_error()
138 case -ERFKILL: in afs_prioritise_error()
139 if (e->error == -EADDRNOTAVAIL) in afs_prioritise_error()
142 case -EADDRNOTAVAIL: in afs_prioritise_error()
143 if (e->error == -ENETUNREACH) in afs_prioritise_error()
146 case -ENETUNREACH: in afs_prioritise_error()
147 if (e->error == -EHOSTUNREACH) in afs_prioritise_error()
150 case -EHOSTUNREACH: in afs_prioritise_error()
151 if (e->error == -EHOSTDOWN) in afs_prioritise_error()
154 case -EHOSTDOWN: in afs_prioritise_error()
155 if (e->error == -ECONNREFUSED) in afs_prioritise_error()
158 case -ECONNREFUSED: in afs_prioritise_error()
159 if (e->error == -ECONNRESET) in afs_prioritise_error()
162 case -ECONNRESET: /* Responded, but call expired. */ in afs_prioritise_error()
163 if (e->responded) in afs_prioritise_error()
165 e->error = error; in afs_prioritise_error()
166 e->aborted = false; in afs_prioritise_error()
169 case -ECONNABORTED: in afs_prioritise_error()
170 e->error = afs_abort_to_error(abort_code); in afs_prioritise_error()
171 e->aborted = true; in afs_prioritise_error()
172 e->responded = true; in afs_prioritise_error()
174 case -ENETRESET: /* Responded, but we seem to have changed address */ in afs_prioritise_error()
175 e->aborted = false; in afs_prioritise_error()
176 e->responded = true; in afs_prioritise_error()
177 e->error = error; in afs_prioritise_error()