dafs-accurately-track-inuse-20080317
[openafs.git] / src / vol / voldefs.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:         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 #define VOLMAXTYPES             3   /* _current_ max number of types */
29
30 /* maximum numbe of Vice partitions */
31 #define VOLMAXPARTS     255
32
33 /* All volumes will have a volume header name in this format */
34 #if     defined(AFS_AIX_ENV) || defined(AFS_HPUX_ENV)
35 /* Note that <afs/param.h> must have been included before we get here... */
36 #define VFORMAT "V%010lu.vl"    /* Sys5's filename length limitation hits us again */
37 #define VHDREXT ".vl"
38 #else
39 #define VFORMAT "V%010lu.vol"
40 #define VHDREXT ".vol"
41 #endif
42 #define VMAXPATHLEN 64          /* Maximum length (including null) of a volume
43                                  * external path name */
44
45 #if defined(AFS_NAMEI_ENV) && !defined(AFS_NT40_ENV)
46 /* INODEDIR holds all the inodes. Since it's name does not begin with "V"
47  * and it's created when the first volume is created, linear directory
48  * searches will find the directory early. If only I had needed this before
49  * the NT server went beta, it could be used there as well.
50  */
51 #define INODEDIR "AFSIDat"
52 #define INODEDIRLEN (sizeof(INODEDIR)-1)
53 #endif
54
55 /* Pathname for the maximum volume id ever created by this server */
56 #define MAXVOLIDPATH    "/vice/vol/maxvolid"
57
58 /* Pathname for server id definitions--the server id is used to allocate volume numbers */
59 #define SERVERLISTPATH  "/vice/db/servers"
60
61 /* Values for connect parameter to VInitVolumePackage */
62 #define CONNECT_FS      1
63 #define DONT_CONNECT_FS 0