2 * Copyright 2000, International Business Machines Corporation and others.
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
13 Institution: The Information Technology Center, Carnegie-Mellon University
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 */
33 /* Reasons (these could be communicated to venus or converted to messages) */
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 */
41 /* Replies (1 byte) */
43 #define FSYNC_DENIED 0
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);