death to trailing whitespace
[openafs.git] / src / util / errors.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11         System:         VICE-TWO
12         Module:         errors.h
13
14  */
15
16 /*
17  * Vice2 error codes
18  * 3/20/85
19  * Note:  all of the errors listed here are currently generated by the volume
20  * package.  Other vice error codes, should they be needed, could be included
21  * here also.
22  */
23 #include <afs/param.h>
24
25 #define VREADONLY       EROFS   /* Attempt to write a read-only volume */
26
27 /* Special error codes, which may require special handling (other than just
28    passing them through directly to the end user) are listed below */
29
30 #define VICE_SPECIAL_ERRORS     101     /* Lowest special error code */
31
32 #define VSALVAGE        101     /* Volume needs salvage */
33 #define VNOVNODE        102     /* Bad vnode number quoted */
34 #define VNOVOL          103     /* Volume not attached, doesn't exist,
35                                  * not created or not online */
36 #define VVOLEXISTS      104     /* Volume already exists */
37 #define VNOSERVICE      105     /* Volume is not in service (i.e. it's
38                                  * is out of funds, is obsolete, or somesuch) */
39 #define VOFFLINE        106     /* Volume is off line, for the reason
40                                  * given in the offline message */
41 #define VONLINE         107     /* Volume is already on line */
42 #define VDISKFULL       108     /* ENOSPC - Partition is "full", i.e. rougly within
43                                  * n% of full */
44 #define VOVERQUOTA      109     /* EDQUOT- Volume max quota exceeded */
45 #define VBUSY           110     /* Volume temporarily unavailable; try again.
46                                  * The volume should be available again shortly; if
47                                  * it isn't something is wrong.  Not normally to be
48                                  * propagated to the application level */
49 #define VMOVED          111     /* Volume has moved to another server; do a VGetVolumeInfo
50                                  * to THIS server to find out where */
51 #define VIO             112     /* Vnode temporarily unaccessible, but not known
52                                  * to be permanently bad. */
53 #define VSALVAGING      113     /* Volume is being salvaged (demand attach fs) */
54 #define VRESTRICTED     120     /* Volume is restricted from using one or more
55                                  * of the given residencies; do a
56                                  * vos examine to find out the current
57                                  * restrictions. */
58 #define VRESTARTING     -100    /* server is restarting, otherwise similar to
59                                  * VBUSY above.  This is negative so that old
60                                  * cache managers treat it as "server is down" */