install-vlib-as-libvlib-also-20010712
[openafs.git] / src / vol / fssync.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:         fssync.h
13         Institution:    The Information Technology Center, Carnegie-Mellon University
14
15  */
16
17
18 /* FSYNC commands */
19
20 #define FSYNC_ON                1 /* Volume online */
21 #define FSYNC_OFF               2 /* Volume offline */
22 #define FSYNC_LISTVOLUMES       3 /* Update local volume list */
23 #define FSYNC_NEEDVOLUME        4 /* Put volume in whatever mode (offline, or whatever)
24                                      best fits the attachment mode provided in reason */
25 #define FSYNC_MOVEVOLUME        5 /* Generate temporary relocation information
26                                      for this volume to another site, to be used
27                                      if this volume disappears */
28 #define FSYNC_RESTOREVOLUME     6 /* Break all the callbacks on this volume since                                   it is being restored */
29 #define FSYNC_DONE              7 /* Done with this volume (used after a delete).
30                                      Don't put online, but remove from list */
31
32
33 /* Reasons (these could be communicated to venus or converted to messages) */
34
35 #define FSYNC_WHATEVER          0 /* XXXX */
36 #define FSYNC_SALVAGE           1 /* volume is being salvaged */
37 #define FSYNC_MOVE              2 /* volume is being moved */
38 #define FSYNC_OPERATOR          3 /* operator forced volume offline */
39
40
41 /* Replies (1 byte) */
42
43 #define FSYNC_DENIED            0
44 #define FSYNC_OK                1
45
46
47 /* Prototypes from fssync.c */
48 void FSYNC_clientFinis(void);
49 int FSYNC_clientInit(void);
50 void FSYNC_fsInit(void);
51 int FSYNC_askfs(VolumeId volume, char *partName, int com, int reason);
52
53
54
55