Coda Distributed File System
fssync.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 8
5
6 Copyright (c) 1987-2021 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15
16#*/
17
18/*
19 IBM COPYRIGHT NOTICE
20
21 Copyright (C) 1986
22 International Business Machines Corporation
23 All Rights Reserved
24
25This file contains some code identical to or derived from the 1986
26version of the Andrew File System ("AFS"), which is owned by the IBM
27Corporation. This code is provided "AS IS" and IBM does not warrant
28that it is free of infringement of any intellectual rights of any
29third party. IBM disclaims liability of any kind for any damages
30whatsoever resulting directly or indirectly from use of this software
31or of any derivative work. Carnegie Mellon University has obtained
32permission to modify, distribute and sublicense this code, which is
33based on Version 2 of AFS and does not contain the features and
34enhancements that are part of Version 3 of AFS. Version 3 of AFS is
35commercially available and supported by Transarc Corporation,
36Pittsburgh, PA.
37
38*/
39
40#ifndef _FSSYNC_H_
41#define _FSSYNC_H_ 1
42
43#include <coda_tsa.h>
44#include "deprecations.h"
45
46/* FSYNC commands */
47#define FSYNC_ON 1 /* Volume online */
48#define FSYNC_OFF 2 /* Volume offline */
49#define FSYNC_NEEDVOLUME \
50 4 /* Put volume in whatever mode (offline, or
51 whatever) best fits the attachment mode
52 provided in reason */
53#define FSYNC_MOVEVOLUME \
54 5 /* Generate temporary relocation information
55 for this volume to another site, to be used
56 if this volume disappears */
58/* Reasons (these could be communicated to venus or converted to messages) */
59#define FSYNC_WHATEVER 0 /* XXXX */
60#define FSYNC_SALVAGE 1 /* volume is being salvaged */
61#define FSYNC_MOVE 2 /* volume is being moved */
62#define FSYNC_OPERATOR 3 /* operator forced volume offline */
63
64/* Replies (1 byte) */
65#define FSYNC_DENIED 0
66#define FSYNC_OK 1
67
68/* Exported Routines */
69extern void FSYNC_fsInit();
70extern int FSYNC_clientInit();
71extern void FSYNC_clientFinis();
72extern int FSYNC_askfs(VolumeId volume, int com, int reason);
73extern unsigned int
75
76#endif /* _FSSYNC_H_ */
int FSYNC_askfs(VolumeId volume, int com, int reason)
Definition: fssync.cc:162
void FSYNC_clientFinis()
Definition: fssync.cc:154
int FSYNC_clientInit()
Definition: fssync.cc:147
void FSYNC_fsInit()
Definition: fssync.cc:111
unsigned int FSYNC_CheckRelocationSite(VolumeId volumeId) WARN_SINGLE_HOMING
Definition: fssync.cc:258
volume
Definition: volusage.py:23
bit32 HostAddress[] WARN_SINGLE_HOMING