/
file.proto
286 lines (255 loc) · 7.59 KB
/
file.proto
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
syntax = "proto2";
package alluxio.proto.journal;
import "grpc/common.proto";
import "proto/shared/acl.proto";
// Journal entry messages for the file master.
// A pair of strings, useful for maps.
// next available id: 3
message StringPairEntry {
optional string key = 1;
optional string value = 2;
}
// next available id: 3
message ActiveSyncTxIdEntry {
optional int64 mount_id = 1;
optional int64 tx_id = 2;
}
// next available id: 3
message AddSyncPointEntry {
optional string syncpoint_path = 1;
optional int64 mount_id = 2;
}
// next available id: 3
message RemoveSyncPointEntry {
optional string syncpoint_path = 1;
optional int64 mount_id = 2;
}
// next available id: 7
message AddMountPointEntry {
optional string alluxio_path = 1;
optional string ufs_path = 2;
optional bool readOnly = 3;
repeated StringPairEntry properties = 4;
optional bool shared = 5;
optional int64 mount_id = 6;
}
// next available id: 2
message AsyncPersistRequestEntry {
optional int64 file_id = 1;
}
// next available id: 6
message CompleteFileEntry {
repeated int64 block_ids = 1;
optional int64 id = 2;
optional int64 length = 3;
optional int64 op_time_ms = 4;
optional string ufs_fingerprint = 5;
}
// next available id: 6
message DeleteFileEntry {
optional int64 id = 1;
// Deprecated, we now write one journal entry per inode removed
optional bool recursive = 2;
optional int64 op_time_ms = 3;
// Deprecated, this field is about whether to delete in the UFS. We don't journal UFS changes.
optional bool alluxioOnly = 4;
optional string path = 5;
}
// next available id: 2
message DeleteMountPointEntry {
optional string alluxio_path = 1;
}
// Creates a new block for a file inode.
// next available id: 2
message NewBlockEntry {
optional int64 id = 1;
}
// XAttrUpdateStrategy controls the behaviour for
// handling updates to the xAttr map
// - TRUNCATE: Replaces the existing xAttr map with the provided xAttr
// - UNION_REPLACE: Inserts all keys from xAttr and overwrites any existing keys
// - UNION_PRESERVE: Inserts all new keys from xAttr (i.e: preserves any existing keys)
// - DELETE_KEYS: Deletes the specified xAttr keys from the existing xAttr map
enum XAttrUpdateStrategy {
TRUNCATE = 1;
UNION_REPLACE = 2;
UNION_PRESERVE = 3;
DELETE_KEYS = 4;
}
// next available id: 21
message UpdateInodeEntry {
optional int64 id = 1;
optional int64 parent_id = 2;
optional string name = 3;
optional string persistence_state = 4;
optional bool pinned = 5;
optional int64 creation_time_ms = 6;
optional int64 last_modification_time_ms = 7;
optional bool overwrite_modification_time = 8;
optional string owner = 9;
optional string group = 10;
optional int32 mode = 11;
optional int64 ttl = 12;
optional PTtlAction ttlAction = 13 [default = DELETE];
optional alluxio.proto.shared.AccessControlList acl = 14;
optional string ufs_fingerprint = 15;
repeated string medium_type = 16;
map<string, bytes> xAttr = 17;
optional int64 last_access_time_ms = 18;
optional bool overwrite_access_time = 19;
optional XAttrUpdateStrategy xAttr_update_strategy = 20 [default = TRUNCATE];
}
// next available id: 5
message UpdateInodeDirectoryEntry {
optional int64 id = 1;
optional bool mount_point = 2;
optional bool direct_children_loaded = 3;
optional alluxio.proto.shared.AccessControlList defaultAcl = 4;
}
// next available id: 13
message UpdateInodeFileEntry {
optional int64 id = 1;
optional int64 block_size_bytes = 2;
optional int64 length = 3;
optional bool completed = 4;
optional bool cacheable = 5;
// Overwrite the blocks list
repeated int64 set_blocks = 7;
optional int32 replication_max = 8;
optional int32 replication_min = 9;
optional int64 persist_job_id = 10;
optional string temp_ufs_path = 11;
optional string path = 12;
}
// next available id: 21
message InodeDirectoryEntry {
optional int64 id = 1;
optional int64 parent_id = 2;
optional string name = 3;
optional string persistence_state = 4;
optional bool pinned = 5;
optional int64 creation_time_ms = 6;
optional int64 last_modification_time_ms = 7;
optional string owner = 8;
optional string group = 9;
optional int32 mode = 10;
optional bool mount_point = 11;
optional bool direct_children_loaded = 12;
optional int64 ttl = 13;
optional PTtlAction ttlAction = 14 [default = DELETE];
optional alluxio.proto.shared.AccessControlList acl = 15;
optional alluxio.proto.shared.AccessControlList defaultAcl = 16;
optional string path = 17;
repeated string medium_type = 18;
map<string, bytes> xAttr = 19;
optional int64 last_access_time_ms = 20;
}
// next available id: 3
message InodeDirectoryIdGeneratorEntry {
optional int64 container_id = 1;
optional int64 sequence_number = 2;
}
enum PTtlAction {
DELETE = 0;
FREE = 1;
}
// next available id: 30
message InodeFileEntry {
optional int64 id = 1;
optional int64 parent_id = 2;
optional string name = 3;
optional string persistence_state = 4;
optional bool pinned = 5;
optional int64 creation_time_ms = 6;
optional int64 last_modification_time_ms = 7;
optional int64 block_size_bytes = 8;
optional int64 length = 9;
optional bool completed = 10;
optional bool cacheable = 11;
repeated int64 blocks = 12;
optional int64 ttl = 13;
optional string owner = 14;
optional string group = 15;
optional int32 mode = 16;
optional PTtlAction ttlAction = 17 [default = DELETE];
optional string ufs_fingerprint = 18;
optional alluxio.proto.shared.AccessControlList acl = 19;
optional int32 replication_max = 20;
optional int32 replication_min = 21;
optional int64 persist_job_id = 22;
optional string temp_ufs_path = 23;
optional int32 replication_durable = 24;
optional string path = 25;
repeated string medium_type = 26;
optional int64 should_persist_time = 27;
map<string, bytes> xAttr = 28;
optional int64 last_access_time_ms = 29;
}
// next available id: 3
message InodeLastModificationTimeEntry {
optional int64 id = 1;
optional int64 last_modification_time_ms = 2;
}
// next available id: 2
message PersistDirectoryEntry {
optional int64 id = 1;
}
// next available id: 4
message PersistFileEntry {
optional int64 id = 1;
optional int64 length = 2;
optional int64 op_time_ms = 3;
}
// next available id: 8
message RenameEntry {
optional int64 id = 1;
// Deprecated, use new_parent_id/new_name instead
optional string dst_path = 2;
optional int64 op_time_ms = 3;
optional int64 new_parent_id = 4;
optional string new_name = 5;
optional string path = 6;
optional string new_path = 7;
}
enum PSetAclAction {
REPLACE = 0;
MODIFY = 1;
REMOVE = 2;
REMOVE_ALL = 3;
REMOVE_DEFAULT = 4;
}
// next available id: 6
message SetAclEntry {
optional int64 id = 1;
optional int64 op_time_ms = 2;
optional PSetAclAction action = 3;
repeated alluxio.proto.shared.AclEntry entries = 4;
optional bool recursive = 5;
}
// next available id: 15
message SetAttributeEntry {
optional int64 id = 1;
optional int64 op_time_ms = 2;
optional bool pinned = 3;
optional int64 ttl = 4;
optional bool persisted = 5;
optional string owner = 6;
optional string group = 7;
optional int32 permission = 8;
optional PTtlAction ttlAction = 9 [default = DELETE];
optional string ufs_fingerprint = 10;
optional int64 persistJobId = 11;
optional string tempUfsPath = 12;
optional int32 replication_max = 13;
optional int32 replication_min = 14;
}
enum UfsMode {
NO_ACCESS = 0;
READ_ONLY = 1;
READ_WRITE = 2;
}
// next available id: 3
message UpdateUfsModeEntry {
optional string ufsPath = 1;
optional UfsMode ufsMode = 2 [default = READ_WRITE];
}