Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / vol / voldefs.h
1
2 #if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
3 #endif
4
5 /*
6  * (C) COPYRIGHT IBM CORPORATION 1987
7  * LICENSED MATERIALS - PROPERTY OF IBM
8  */
9 /*
10
11         System:         VICE-TWO
12         Module:         voldefs.h
13         Institution:    The Information Technology Center, Carnegie-Mellon University
14
15  */
16
17 /* If you add volume types here, be sure to check the definition of
18    volumeWriteable in volume.h */
19
20 #define readwriteVolume         RWVOL
21 #define readonlyVolume          ROVOL
22 #define backupVolume            BACKVOL
23
24 #define RWVOL                   0
25 #define ROVOL                   1
26 #define BACKVOL                 2
27
28 /* All volumes will have a volume header name in this format */
29 #if     defined(AFS_AIX_ENV) || defined(AFS_HPUX_ENV)
30 /* Note that <afs/param.h> must have been included before we get here... */
31 #define VFORMAT "V%010lu.vl"    /* Sys5's filename length limitation hits us again */
32 #define VHDREXT ".vl"
33 #else
34 #define VFORMAT "V%010lu.vol"
35 #define VHDREXT ".vol"
36 #endif
37 #define VMAXPATHLEN 64          /* Maximum length (including null) of a volume
38                                    external path name */
39
40 #if defined(AFS_NAMEI_ENV) && !defined(AFS_NT40_ENV)
41 /* INODEDIR holds all the inodes. Since it's name does not begin with "V"
42  * and it's created when the first volume is created, linear directory
43  * searches will find the directory early. If only I had needed this before
44  * the NT server went beta, it could be used there as well.
45  */
46 #define INODEDIR "AFSIDat"
47 #define INODEDIRLEN (sizeof(INODEDIR)-1)
48 #endif
49
50 /* Pathname for the maximum volume id ever created by this server */
51 #define MAXVOLIDPATH    "/vice/vol/maxvolid"
52
53 /* Pathname for server id definitions--the server id is used to allocate volume numbers */
54 #define SERVERLISTPATH  "/vice/db/servers"
55
56 /* Values for connect parameter to VInitVolumePackage */
57 #define CONNECT_FS      1
58 #define DONT_CONNECT_FS 0