This repository was archived by the owner on Jan 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathsfscd_prot.x
93 lines (73 loc) · 1.72 KB
/
sfscd_prot.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* $Id$ */
/*
* This file was written by David Mazieres. Its contents is
* uncopyrighted and in the public domain. Of course, standards of
* academic honesty nonetheless prevent anyone in research from
* falsely claiming credit for this work.
*/
%#include "sfs_prot.h"
%#include "nfsmounter.h"
%#include "sfsagent.h"
struct sfscd_initarg {
string name<>;
};
/* If cres is present, a mount call must be preceeded by a sendfd */
struct sfscd_mountarg {
sfs_connectarg carg;
sfs_connectok *cres;
string hostname<>; /* Host to which TCP connection established */
};
/* A successful mountres must be preceeded by a sendfd */
struct sfscd_mountok {
int mntflags;
nfsmnt_handle fh;
};
union sfscd_mountres switch (int err) {
case 0:
sfscd_mountok reply;
default:
void;
};
union sfscd_authreq switch (int type) {
case AGENTCB_AUTHINIT:
sfsagent_authinit_arg init;
case AGENTCB_AUTHMORE:
sfsagent_authmore_arg more;
};
typedef unsigned hyper sfs_aid;
struct sfscd_agentreq_arg {
sfs_aid aid;
sfscd_authreq agentreq;
};
program SFSCD_PROGRAM {
version SFSCD_VERSION {
void
SFSCDPROC_NULL (void) = 0;
void
SFSCDPROC_INIT (sfscd_initarg) = 1;
sfscd_mountres
SFSCDPROC_MOUNT (sfscd_mountarg) = 2;
void
SFSCDPROC_UNMOUNT (nfspath3) = 3;
void
SFSCDPROC_FLUSHAUTH (sfs_aid) = 4;
void
SFSCDPROC_CONDEMN (nfspath3) = 5;
} = 1;
} = 344438;
program SFSCDCB_PROGRAM {
version SFSCDCB_VERSION {
void
SFSCDCBPROC_NULL (void) = 0;
sfsagent_auth_res
SFSCDCBPROC_AGENTREQ (sfscd_agentreq_arg) = 1;
void
SFSCDCBPROC_IDLE (nfspath3) = 2;
void
SFSCDCBPROC_DELFS (nfspath3) = 3;
void
SFSCDCBPROC_HIDEFS (nfspath3) = 4;
void
SFSCDCBPROC_SHOWFS (nfspath3) = 5;
} = 1;
} = 344439;