Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / afs / voldefs.h
blob5ce3934e1c1b5a4687365ad8aa94371f15359b70
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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 */
11 * System: VICE-TWO
12 * Module: voldefs.h
13 * Institution: The Information Technology Center, Carnegie-Mellon University
16 /* If you add volume types here, be sure to check the definition of
17 * volumeWriteable in volume.h
20 #define readwriteVolume RWVOL
21 #define readonlyVolume ROVOL
22 #define backupVolume BACKVOL
24 #define RWVOL 0
25 #define ROVOL 1
26 #define BACKVOL 2
29 * All volumes will have a volume header file with the filename
30 * in one of these two formats. The difference is largely historical.
31 * Early versions of System V Unix had severe limitations on maximum
32 * filename length, and the '.vol' extension had to be shortened to
33 * allow for the maximum volume name to fit. Those restrictions no
34 * longer apply, but the descendants of those legacy AIX and HPUX
35 * servers still use the shorter name.
37 * If you change VHDREXT, you must change VFORMAT as well. Don't try
38 * this with token pasting in cpp; it's just too inconsistent in
39 * across C compilers.
41 * Note that <afs/param.h> must have been included before we get here.
44 #if defined(AFS_AIX_ENV) || defined(AFS_HPUX_ENV)
45 #define VHDREXT ".vl"
46 #define VFORMAT "V%010" AFS_VOLID_FMT ".vl"
47 #else
48 #define VHDREXT ".vol"
49 #define VFORMAT "V%010" AFS_VOLID_FMT ".vol"
50 #endif
52 #define VMAXPATHLEN 64 /* Maximum length (including null) of a volume
53 * external path name