nl-linux 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/NLSPEC_VERSION +1 -1
- data/generated/nl/linux/binder.rb +103 -187
- data/generated/nl/linux/conntrack.rb +1053 -1649
- data/generated/nl/linux/dev_energymodel.rb +303 -265
- data/generated/nl/linux/devlink.rb +4904 -5576
- data/generated/nl/linux/dpll.rb +1097 -1467
- data/generated/nl/linux/drm_ras.rb +235 -195
- data/generated/nl/linux/ethtool.rb +6652 -7415
- data/generated/nl/linux/fou.rb +234 -255
- data/generated/nl/linux/handshake.rb +208 -280
- data/generated/nl/linux/lockd.rb +99 -73
- data/generated/nl/linux/mptcp_pm.rb +589 -687
- data/generated/nl/linux/net_shaper.rb +520 -615
- data/generated/nl/linux/netdev.rb +1640 -1987
- data/generated/nl/linux/nfsd.rb +1341 -1215
- data/generated/nl/linux/nftables.rb +5143 -4870
- data/generated/nl/linux/nl80211.rb +2542 -6316
- data/generated/nl/linux/nlctrl.rb +338 -483
- data/generated/nl/linux/ovpn.rb +1006 -1522
- data/generated/nl/linux/ovs_datapath.rb +291 -186
- data/generated/nl/linux/ovs_flow.rb +1393 -2065
- data/generated/nl/linux/ovs_packet.rb +186 -223
- data/generated/nl/linux/ovs_vport.rb +328 -285
- data/generated/nl/linux/psp.rb +812 -717
- data/generated/nl/linux/rt_addr.rb +513 -243
- data/generated/nl/linux/rt_link.rb +4504 -7238
- data/generated/nl/linux/rt_neigh.rb +935 -847
- data/generated/nl/linux/rt_route.rb +1198 -871
- data/generated/nl/linux/rt_rule.rb +680 -659
- data/generated/nl/linux/sunrpc_cache.rb +323 -321
- data/generated/nl/linux/tc.rb +9058 -10454
- data/generated/nl/linux/tcp_metrics.rb +258 -367
- data/generated/nl/linux/team.rb +327 -345
- data/generated/nl/linux/wireguard.rb +270 -434
- data/lib/nl/linux/nlctrl_resolver.rb +1 -1
- data/lib/nl/linux/version.rb +1 -1
- data/linux/conntrack.yaml +18 -3
- data/linux/devlink.yaml +26 -4
- data/linux/dpll.yaml +19 -0
- data/linux/netdev.yaml +21 -0
- data/linux/nfsd.yaml +111 -0
- data/linux/nl80211.yaml +2 -2
- data/linux/rt-addr.yaml +4 -0
- data/linux/rt-link.yaml +7 -0
- data/linux/rt-neigh.yaml +3 -0
- data/linux/rt-route.yaml +83 -2
- data/sig/generated/nl/linux/binder.rbs +77 -220
- data/sig/generated/nl/linux/conntrack.rbs +770 -1954
- data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
- data/sig/generated/nl/linux/devlink.rbs +3318 -6068
- data/sig/generated/nl/linux/dpll.rbs +791 -1589
- data/sig/generated/nl/linux/drm_ras.rbs +160 -208
- data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
- data/sig/generated/nl/linux/fou.rbs +139 -254
- data/sig/generated/nl/linux/handshake.rbs +144 -319
- data/sig/generated/nl/linux/lockd.rbs +64 -74
- data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
- data/sig/generated/nl/linux/net_shaper.rbs +351 -644
- data/sig/generated/nl/linux/netdev.rbs +1151 -2146
- data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
- data/sig/generated/nl/linux/nftables.rbs +2907 -5030
- data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
- data/sig/generated/nl/linux/nlctrl.rbs +220 -544
- data/sig/generated/nl/linux/ovpn.rbs +835 -1859
- data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
- data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
- data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
- data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
- data/sig/generated/nl/linux/psp.rbs +550 -741
- data/sig/generated/nl/linux/rt_addr.rbs +188 -226
- data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
- data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
- data/sig/generated/nl/linux/rt_route.rbs +632 -862
- data/sig/generated/nl/linux/rt_rule.rbs +217 -639
- data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
- data/sig/generated/nl/linux/tc.rbs +6199 -13391
- data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
- data/sig/generated/nl/linux/team.rbs +232 -391
- data/sig/generated/nl/linux/wireguard.rbs +197 -502
- metadata +6 -6
data/generated/nl/linux/nfsd.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
2
|
#
|
|
3
|
-
# This file is based on Documentation/netlink/specs/nfsd.yaml from Linux v7.
|
|
3
|
+
# This file is based on Documentation/netlink/specs/nfsd.yaml from Linux v7.3.
|
|
4
4
|
#--
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
@@ -27,7 +27,7 @@ class Nfsd < ::Nl::Genl::Family
|
|
|
27
27
|
super
|
|
28
28
|
end
|
|
29
29
|
# @private
|
|
30
|
-
MCAST_GROUPS =
|
|
30
|
+
MCAST_GROUPS = {:"none" => ::Nl::McastGroup.new("none", nil), :"exportd" => ::Nl::McastGroup.new("exportd", nil)}.freeze #: Hash[::Symbol, ::Nl::McastGroup]
|
|
31
31
|
module Flags
|
|
32
32
|
module CacheType
|
|
33
33
|
SvcExport = 1
|
|
@@ -65,1581 +65,1683 @@ class Nfsd < ::Nl::Genl::Family
|
|
|
65
65
|
end
|
|
66
66
|
module AttributeSets
|
|
67
67
|
class CacheNotify < ::Nl::AttributeSet
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
module Definitions
|
|
69
|
+
# Known flags are defined in {Flags::CacheType}.
|
|
70
|
+
# @rbs return: ::Integer
|
|
71
|
+
# @return [Integer]
|
|
72
|
+
def cache_type; self[:"cache_type"]; end
|
|
70
73
|
end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
ORDER = 0
|
|
77
|
-
# @private
|
|
78
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
79
|
-
end
|
|
80
|
-
# @private
|
|
81
|
-
BY_NAME = Ractor.make_shareable({:"cache_type" => CacheType}) #: Hash[::Symbol, Attribute]
|
|
82
|
-
# @private
|
|
83
|
-
BY_TYPE = Ractor.make_shareable({1 => CacheType}) #: Hash[::Integer, Attribute]
|
|
84
|
-
# Known flags are defined in {Flags::CacheType}.
|
|
85
|
-
# @rbs return: ::Integer
|
|
86
|
-
# @return [Integer]
|
|
87
|
-
# @see CacheType
|
|
88
|
-
def cache_type; self[:"cache_type"]&.value; end
|
|
89
|
-
class << self
|
|
90
|
-
# Looks up Attribute class by name.
|
|
91
|
-
# @rbs name: Symbol
|
|
92
|
-
# @rbs return: Attribute
|
|
93
|
-
# @param [Symbol] name
|
|
94
|
-
# @return [Attribute]
|
|
95
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
96
|
-
# Looks up Attribute class by type value.
|
|
97
|
-
# @rbs type: Integer
|
|
98
|
-
# @rbs return: Attribute
|
|
99
|
-
# @param [Integer] type
|
|
100
|
-
# @return [Attribute]
|
|
101
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
74
|
+
include Definitions
|
|
75
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
76
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
77
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
78
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
102
79
|
end
|
|
103
80
|
end
|
|
104
81
|
class RpcStatus < ::Nl::AttributeSet
|
|
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
|
-
# @private
|
|
152
|
-
ORDER = 5
|
|
153
|
-
# @private
|
|
154
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
|
|
155
|
-
end
|
|
156
|
-
class Pad < Attribute
|
|
157
|
-
TYPE = 7
|
|
158
|
-
NAME = :"pad"
|
|
159
|
-
# @private
|
|
160
|
-
ORDER = 6
|
|
161
|
-
# @private
|
|
162
|
-
DATATYPE = ::Nl::DataTypes::Pad.new()
|
|
163
|
-
end
|
|
164
|
-
class Saddr4 < Attribute
|
|
165
|
-
TYPE = 8
|
|
166
|
-
NAME = :"saddr4"
|
|
167
|
-
# @private
|
|
168
|
-
ORDER = 7
|
|
169
|
-
# @private
|
|
170
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
|
|
171
|
-
end
|
|
172
|
-
class Daddr4 < Attribute
|
|
173
|
-
TYPE = 9
|
|
174
|
-
NAME = :"daddr4"
|
|
175
|
-
# @private
|
|
176
|
-
ORDER = 8
|
|
177
|
-
# @private
|
|
178
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
|
|
179
|
-
end
|
|
180
|
-
class Saddr6 < Attribute
|
|
181
|
-
TYPE = 10
|
|
182
|
-
NAME = :"saddr6"
|
|
183
|
-
# @private
|
|
184
|
-
ORDER = 9
|
|
185
|
-
# @private
|
|
186
|
-
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
187
|
-
end
|
|
188
|
-
class Daddr6 < Attribute
|
|
189
|
-
TYPE = 11
|
|
190
|
-
NAME = :"daddr6"
|
|
191
|
-
# @private
|
|
192
|
-
ORDER = 10
|
|
193
|
-
# @private
|
|
194
|
-
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
195
|
-
end
|
|
196
|
-
class Sport < Attribute
|
|
197
|
-
TYPE = 12
|
|
198
|
-
NAME = :"sport"
|
|
199
|
-
# @private
|
|
200
|
-
ORDER = 11
|
|
201
|
-
# @private
|
|
202
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
|
|
203
|
-
end
|
|
204
|
-
class Dport < Attribute
|
|
205
|
-
TYPE = 13
|
|
206
|
-
NAME = :"dport"
|
|
207
|
-
# @private
|
|
208
|
-
ORDER = 12
|
|
209
|
-
# @private
|
|
210
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
|
|
211
|
-
end
|
|
212
|
-
class CompoundOps < Attribute
|
|
213
|
-
TYPE = 14
|
|
214
|
-
NAME = :"compound_ops"
|
|
215
|
-
# @private
|
|
216
|
-
MULTI = true
|
|
217
|
-
# @private
|
|
218
|
-
ORDER = 13
|
|
219
|
-
# @private
|
|
220
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
221
|
-
end
|
|
222
|
-
# @private
|
|
223
|
-
BY_NAME = Ractor.make_shareable({:"xid" => Xid, :"flags" => Flags, :"prog" => Prog, :"version" => Version, :"proc" => Proc, :"service_time" => ServiceTime, :"pad" => Pad, :"saddr4" => Saddr4, :"daddr4" => Daddr4, :"saddr6" => Saddr6, :"daddr6" => Daddr6, :"sport" => Sport, :"dport" => Dport, :"compound_ops" => CompoundOps}) #: Hash[::Symbol, Attribute]
|
|
224
|
-
# @private
|
|
225
|
-
BY_TYPE = Ractor.make_shareable({1 => Xid, 2 => Flags, 3 => Prog, 4 => Version, 5 => Proc, 6 => ServiceTime, 7 => Pad, 8 => Saddr4, 9 => Daddr4, 10 => Saddr6, 11 => Daddr6, 12 => Sport, 13 => Dport, 14 => CompoundOps}) #: Hash[::Integer, Attribute]
|
|
226
|
-
# @rbs return: ::Integer
|
|
227
|
-
# @return [Integer]
|
|
228
|
-
# @see Xid
|
|
229
|
-
def xid; self[:"xid"]&.value; end
|
|
230
|
-
# @rbs return: ::Integer
|
|
231
|
-
# @return [Integer]
|
|
232
|
-
# @see Flags
|
|
233
|
-
def flags; self[:"flags"]&.value; end
|
|
234
|
-
# @rbs return: ::Integer
|
|
235
|
-
# @return [Integer]
|
|
236
|
-
# @see Prog
|
|
237
|
-
def prog; self[:"prog"]&.value; end
|
|
238
|
-
# @rbs return: ::Integer
|
|
239
|
-
# @return [Integer]
|
|
240
|
-
# @see Version
|
|
241
|
-
def version; self[:"version"]&.value; end
|
|
242
|
-
# @rbs return: ::Integer
|
|
243
|
-
# @return [Integer]
|
|
244
|
-
# @see Proc
|
|
245
|
-
def proc; self[:"proc"]&.value; end
|
|
246
|
-
# @rbs return: ::Integer
|
|
247
|
-
# @return [Integer]
|
|
248
|
-
# @see ServiceTime
|
|
249
|
-
def service_time; self[:"service_time"]&.value; end
|
|
250
|
-
# @rbs return: ::Integer
|
|
251
|
-
# @return [Integer]
|
|
252
|
-
# @see Saddr4
|
|
253
|
-
def saddr4; self[:"saddr4"]&.value; end
|
|
254
|
-
# @rbs return: ::Integer
|
|
255
|
-
# @return [Integer]
|
|
256
|
-
# @see Daddr4
|
|
257
|
-
def daddr4; self[:"daddr4"]&.value; end
|
|
258
|
-
# @rbs return: ::String
|
|
259
|
-
# @return [String]
|
|
260
|
-
# @see Saddr6
|
|
261
|
-
def saddr6; self[:"saddr6"]&.value; end
|
|
262
|
-
# @rbs return: ::String
|
|
263
|
-
# @return [String]
|
|
264
|
-
# @see Daddr6
|
|
265
|
-
def daddr6; self[:"daddr6"]&.value; end
|
|
266
|
-
# @rbs return: ::Integer
|
|
267
|
-
# @return [Integer]
|
|
268
|
-
# @see Sport
|
|
269
|
-
def sport; self[:"sport"]&.value; end
|
|
270
|
-
# @rbs return: ::Integer
|
|
271
|
-
# @return [Integer]
|
|
272
|
-
# @see Dport
|
|
273
|
-
def dport; self[:"dport"]&.value; end
|
|
274
|
-
# @rbs return: ::Array[::Integer]
|
|
275
|
-
# @return [Array<Integer>]
|
|
276
|
-
# @see CompoundOps
|
|
277
|
-
def compound_ops; self[:"compound_ops"].map(&:value); end
|
|
278
|
-
class << self
|
|
279
|
-
# Looks up Attribute class by name.
|
|
280
|
-
# @rbs name: Symbol
|
|
281
|
-
# @rbs return: Attribute
|
|
282
|
-
# @param [Symbol] name
|
|
283
|
-
# @return [Attribute]
|
|
284
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
285
|
-
# Looks up Attribute class by type value.
|
|
286
|
-
# @rbs type: Integer
|
|
287
|
-
# @rbs return: Attribute
|
|
288
|
-
# @param [Integer] type
|
|
289
|
-
# @return [Attribute]
|
|
290
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
82
|
+
module Definitions
|
|
83
|
+
# @rbs return: ::Integer
|
|
84
|
+
# @return [Integer]
|
|
85
|
+
def xid; self[:"xid"]; end
|
|
86
|
+
# @rbs return: ::Integer
|
|
87
|
+
# @return [Integer]
|
|
88
|
+
def flags; self[:"flags"]; end
|
|
89
|
+
# @rbs return: ::Integer
|
|
90
|
+
# @return [Integer]
|
|
91
|
+
def prog; self[:"prog"]; end
|
|
92
|
+
# @rbs return: ::Integer
|
|
93
|
+
# @return [Integer]
|
|
94
|
+
def version; self[:"version"]; end
|
|
95
|
+
# @rbs return: ::Integer
|
|
96
|
+
# @return [Integer]
|
|
97
|
+
def proc; self[:"proc"]; end
|
|
98
|
+
# @rbs return: ::Integer
|
|
99
|
+
# @return [Integer]
|
|
100
|
+
def service_time; self[:"service_time"]; end
|
|
101
|
+
# @rbs return: ::Integer
|
|
102
|
+
# @return [Integer]
|
|
103
|
+
def saddr4; self[:"saddr4"]; end
|
|
104
|
+
# @rbs return: ::Integer
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
def daddr4; self[:"daddr4"]; end
|
|
107
|
+
# @rbs return: ::String
|
|
108
|
+
# @return [String]
|
|
109
|
+
def saddr6; self[:"saddr6"]; end
|
|
110
|
+
# @rbs return: ::String
|
|
111
|
+
# @return [String]
|
|
112
|
+
def daddr6; self[:"daddr6"]; end
|
|
113
|
+
# @rbs return: ::Integer
|
|
114
|
+
# @return [Integer]
|
|
115
|
+
def sport; self[:"sport"]; end
|
|
116
|
+
# @rbs return: ::Integer
|
|
117
|
+
# @return [Integer]
|
|
118
|
+
def dport; self[:"dport"]; end
|
|
119
|
+
# @rbs return: ::Array[::Integer]
|
|
120
|
+
# @return [Array<Integer>]
|
|
121
|
+
def compound_ops; self[:"compound_ops"]; end
|
|
122
|
+
end
|
|
123
|
+
include Definitions
|
|
124
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
125
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
126
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
127
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
291
128
|
end
|
|
292
129
|
end
|
|
293
130
|
class Server < ::Nl::AttributeSet
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
# @
|
|
303
|
-
|
|
304
|
-
# @
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
# @
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
ORDER = 2
|
|
320
|
-
# @private
|
|
321
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
322
|
-
end
|
|
323
|
-
class Scope < Attribute
|
|
324
|
-
TYPE = 4
|
|
325
|
-
NAME = :"scope"
|
|
326
|
-
# @private
|
|
327
|
-
ORDER = 3
|
|
328
|
-
# @private
|
|
329
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
330
|
-
end
|
|
331
|
-
class MinThreads < Attribute
|
|
332
|
-
TYPE = 5
|
|
333
|
-
NAME = :"min_threads"
|
|
334
|
-
# @private
|
|
335
|
-
ORDER = 4
|
|
336
|
-
# @private
|
|
337
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
338
|
-
end
|
|
339
|
-
class FhKey < Attribute
|
|
340
|
-
TYPE = 6
|
|
341
|
-
NAME = :"fh_key"
|
|
342
|
-
# @private
|
|
343
|
-
ORDER = 5
|
|
344
|
-
# @private
|
|
345
|
-
DATATYPE = ::Nl::DataTypes::Binary.new(check: -> { raise ArgumentError, "Value #{it.inspect} is not equal to length 16" unless it.bytesize == 16 })
|
|
346
|
-
end
|
|
347
|
-
# @private
|
|
348
|
-
BY_NAME = Ractor.make_shareable({:"threads" => Threads, :"gracetime" => Gracetime, :"leasetime" => Leasetime, :"scope" => Scope, :"min_threads" => MinThreads, :"fh_key" => FhKey}) #: Hash[::Symbol, Attribute]
|
|
349
|
-
# @private
|
|
350
|
-
BY_TYPE = Ractor.make_shareable({1 => Threads, 2 => Gracetime, 3 => Leasetime, 4 => Scope, 5 => MinThreads, 6 => FhKey}) #: Hash[::Integer, Attribute]
|
|
351
|
-
# @rbs return: ::Array[::Integer]
|
|
352
|
-
# @return [Array<Integer>]
|
|
353
|
-
# @see Threads
|
|
354
|
-
def threads; self[:"threads"].map(&:value); end
|
|
355
|
-
# @rbs return: ::Integer
|
|
356
|
-
# @return [Integer]
|
|
357
|
-
# @see Gracetime
|
|
358
|
-
def gracetime; self[:"gracetime"]&.value; end
|
|
359
|
-
# @rbs return: ::Integer
|
|
360
|
-
# @return [Integer]
|
|
361
|
-
# @see Leasetime
|
|
362
|
-
def leasetime; self[:"leasetime"]&.value; end
|
|
363
|
-
# @rbs return: ::String
|
|
364
|
-
# @return [String]
|
|
365
|
-
# @see Scope
|
|
366
|
-
def scope; self[:"scope"]&.value; end
|
|
367
|
-
# @rbs return: ::Integer
|
|
368
|
-
# @return [Integer]
|
|
369
|
-
# @see MinThreads
|
|
370
|
-
def min_threads; self[:"min_threads"]&.value; end
|
|
371
|
-
# @rbs return: ::String
|
|
372
|
-
# @return [String]
|
|
373
|
-
# @see FhKey
|
|
374
|
-
def fh_key; self[:"fh_key"]&.value; end
|
|
375
|
-
class << self
|
|
376
|
-
# Looks up Attribute class by name.
|
|
377
|
-
# @rbs name: Symbol
|
|
378
|
-
# @rbs return: Attribute
|
|
379
|
-
# @param [Symbol] name
|
|
380
|
-
# @return [Attribute]
|
|
381
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
382
|
-
# Looks up Attribute class by type value.
|
|
383
|
-
# @rbs type: Integer
|
|
384
|
-
# @rbs return: Attribute
|
|
385
|
-
# @param [Integer] type
|
|
386
|
-
# @return [Attribute]
|
|
387
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
131
|
+
module Definitions
|
|
132
|
+
# @rbs return: ::Array[::Integer]
|
|
133
|
+
# @return [Array<Integer>]
|
|
134
|
+
def threads; self[:"threads"]; end
|
|
135
|
+
# @rbs return: ::Integer
|
|
136
|
+
# @return [Integer]
|
|
137
|
+
def gracetime; self[:"gracetime"]; end
|
|
138
|
+
# @rbs return: ::Integer
|
|
139
|
+
# @return [Integer]
|
|
140
|
+
def leasetime; self[:"leasetime"]; end
|
|
141
|
+
# @rbs return: ::String
|
|
142
|
+
# @return [String]
|
|
143
|
+
def scope; self[:"scope"]; end
|
|
144
|
+
# @rbs return: ::Integer
|
|
145
|
+
# @return [Integer]
|
|
146
|
+
def min_threads; self[:"min_threads"]; end
|
|
147
|
+
# @rbs return: ::String
|
|
148
|
+
# @return [String]
|
|
149
|
+
def fh_key; self[:"fh_key"]; end
|
|
150
|
+
end
|
|
151
|
+
include Definitions
|
|
152
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
153
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
154
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
155
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
388
156
|
end
|
|
389
157
|
end
|
|
390
158
|
class Version < ::Nl::AttributeSet
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
# @
|
|
400
|
-
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
# @private
|
|
408
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
409
|
-
end
|
|
410
|
-
class Enabled < Attribute
|
|
411
|
-
TYPE = 3
|
|
412
|
-
NAME = :"enabled"
|
|
413
|
-
# @private
|
|
414
|
-
ORDER = 2
|
|
415
|
-
# @private
|
|
416
|
-
DATATYPE = ::Nl::DataTypes::Flag.new
|
|
417
|
-
end
|
|
418
|
-
# @private
|
|
419
|
-
BY_NAME = Ractor.make_shareable({:"major" => Major, :"minor" => Minor, :"enabled" => Enabled}) #: Hash[::Symbol, Attribute]
|
|
420
|
-
# @private
|
|
421
|
-
BY_TYPE = Ractor.make_shareable({1 => Major, 2 => Minor, 3 => Enabled}) #: Hash[::Integer, Attribute]
|
|
422
|
-
# @rbs return: ::Integer
|
|
423
|
-
# @return [Integer]
|
|
424
|
-
# @see Major
|
|
425
|
-
def major; self[:"major"]&.value; end
|
|
426
|
-
# @rbs return: ::Integer
|
|
427
|
-
# @return [Integer]
|
|
428
|
-
# @see Minor
|
|
429
|
-
def minor; self[:"minor"]&.value; end
|
|
430
|
-
# @rbs return: ::Integer
|
|
431
|
-
# @return [Integer]
|
|
432
|
-
# @see Enabled
|
|
433
|
-
def enabled; self[:"enabled"]&.value; end
|
|
434
|
-
class << self
|
|
435
|
-
# Looks up Attribute class by name.
|
|
436
|
-
# @rbs name: Symbol
|
|
437
|
-
# @rbs return: Attribute
|
|
438
|
-
# @param [Symbol] name
|
|
439
|
-
# @return [Attribute]
|
|
440
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
441
|
-
# Looks up Attribute class by type value.
|
|
442
|
-
# @rbs type: Integer
|
|
443
|
-
# @rbs return: Attribute
|
|
444
|
-
# @param [Integer] type
|
|
445
|
-
# @return [Attribute]
|
|
446
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
159
|
+
module Definitions
|
|
160
|
+
# @rbs return: ::Integer
|
|
161
|
+
# @return [Integer]
|
|
162
|
+
def major; self[:"major"]; end
|
|
163
|
+
# @rbs return: ::Integer
|
|
164
|
+
# @return [Integer]
|
|
165
|
+
def minor; self[:"minor"]; end
|
|
166
|
+
# @rbs return: ::Integer
|
|
167
|
+
# @return [Integer]
|
|
168
|
+
def enabled; self[:"enabled"]; end
|
|
169
|
+
end
|
|
170
|
+
include Definitions
|
|
171
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
172
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
173
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
174
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
447
175
|
end
|
|
448
176
|
end
|
|
449
177
|
class ServerProto < ::Nl::AttributeSet
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
TYPE = 1
|
|
455
|
-
NAME = :"version"
|
|
456
|
-
# @private
|
|
457
|
-
MULTI = true
|
|
458
|
-
# @private
|
|
459
|
-
ORDER = 0
|
|
178
|
+
module Definitions
|
|
179
|
+
# @rbs return: ::Array[AttributeSets::Version]
|
|
180
|
+
# @return [Array<AttributeSets::Version>]
|
|
181
|
+
def version; self[:"version"]; end
|
|
460
182
|
end
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
# @
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
# @return [Array<AttributeSets::Version>]
|
|
467
|
-
# @see Version
|
|
468
|
-
def version; self[:"version"].map(&:value); end
|
|
469
|
-
class << self
|
|
470
|
-
# Looks up Attribute class by name.
|
|
471
|
-
# @rbs name: Symbol
|
|
472
|
-
# @rbs return: Attribute
|
|
473
|
-
# @param [Symbol] name
|
|
474
|
-
# @return [Attribute]
|
|
475
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
476
|
-
# Looks up Attribute class by type value.
|
|
477
|
-
# @rbs type: Integer
|
|
478
|
-
# @rbs return: Attribute
|
|
479
|
-
# @param [Integer] type
|
|
480
|
-
# @return [Attribute]
|
|
481
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
183
|
+
include Definitions
|
|
184
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
185
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
186
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
187
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
482
188
|
end
|
|
483
189
|
end
|
|
484
190
|
class Sock < ::Nl::AttributeSet
|
|
485
|
-
|
|
486
|
-
|
|
191
|
+
module Definitions
|
|
192
|
+
# @rbs return: ::String
|
|
193
|
+
# @return [String]
|
|
194
|
+
def addr; self[:"addr"]; end
|
|
195
|
+
# @rbs return: ::String
|
|
196
|
+
# @return [String]
|
|
197
|
+
def transport_name; self[:"transport_name"]; end
|
|
487
198
|
end
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
# @private
|
|
494
|
-
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
495
|
-
end
|
|
496
|
-
class TransportName < Attribute
|
|
497
|
-
TYPE = 2
|
|
498
|
-
NAME = :"transport_name"
|
|
499
|
-
# @private
|
|
500
|
-
ORDER = 1
|
|
501
|
-
# @private
|
|
502
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
503
|
-
end
|
|
504
|
-
# @private
|
|
505
|
-
BY_NAME = Ractor.make_shareable({:"addr" => Addr, :"transport_name" => TransportName}) #: Hash[::Symbol, Attribute]
|
|
506
|
-
# @private
|
|
507
|
-
BY_TYPE = Ractor.make_shareable({1 => Addr, 2 => TransportName}) #: Hash[::Integer, Attribute]
|
|
508
|
-
# @rbs return: ::String
|
|
509
|
-
# @return [String]
|
|
510
|
-
# @see Addr
|
|
511
|
-
def addr; self[:"addr"]&.value; end
|
|
512
|
-
# @rbs return: ::String
|
|
513
|
-
# @return [String]
|
|
514
|
-
# @see TransportName
|
|
515
|
-
def transport_name; self[:"transport_name"]&.value; end
|
|
516
|
-
class << self
|
|
517
|
-
# Looks up Attribute class by name.
|
|
518
|
-
# @rbs name: Symbol
|
|
519
|
-
# @rbs return: Attribute
|
|
520
|
-
# @param [Symbol] name
|
|
521
|
-
# @return [Attribute]
|
|
522
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
523
|
-
# Looks up Attribute class by type value.
|
|
524
|
-
# @rbs type: Integer
|
|
525
|
-
# @rbs return: Attribute
|
|
526
|
-
# @param [Integer] type
|
|
527
|
-
# @return [Attribute]
|
|
528
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
199
|
+
include Definitions
|
|
200
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
201
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
202
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
203
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
529
204
|
end
|
|
530
205
|
end
|
|
531
206
|
class ServerSock < ::Nl::AttributeSet
|
|
532
|
-
|
|
533
|
-
|
|
207
|
+
module Definitions
|
|
208
|
+
# @rbs return: ::Array[AttributeSets::Sock]
|
|
209
|
+
# @return [Array<AttributeSets::Sock>]
|
|
210
|
+
def addr; self[:"addr"]; end
|
|
534
211
|
end
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
# @private
|
|
541
|
-
ORDER = 0
|
|
542
|
-
end
|
|
543
|
-
# @private
|
|
544
|
-
BY_NAME = Ractor.make_shareable({:"addr" => Addr}) #: Hash[::Symbol, Attribute]
|
|
545
|
-
# @private
|
|
546
|
-
BY_TYPE = Ractor.make_shareable({1 => Addr}) #: Hash[::Integer, Attribute]
|
|
547
|
-
# @rbs return: ::Array[AttributeSets::Sock]
|
|
548
|
-
# @return [Array<AttributeSets::Sock>]
|
|
549
|
-
# @see Addr
|
|
550
|
-
def addr; self[:"addr"].map(&:value); end
|
|
551
|
-
class << self
|
|
552
|
-
# Looks up Attribute class by name.
|
|
553
|
-
# @rbs name: Symbol
|
|
554
|
-
# @rbs return: Attribute
|
|
555
|
-
# @param [Symbol] name
|
|
556
|
-
# @return [Attribute]
|
|
557
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
558
|
-
# Looks up Attribute class by type value.
|
|
559
|
-
# @rbs type: Integer
|
|
560
|
-
# @rbs return: Attribute
|
|
561
|
-
# @param [Integer] type
|
|
562
|
-
# @return [Attribute]
|
|
563
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
212
|
+
include Definitions
|
|
213
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
214
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
215
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
216
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
564
217
|
end
|
|
565
218
|
end
|
|
566
219
|
class PoolMode < ::Nl::AttributeSet
|
|
567
|
-
|
|
568
|
-
|
|
220
|
+
module Definitions
|
|
221
|
+
# @rbs return: ::String
|
|
222
|
+
# @return [String]
|
|
223
|
+
def mode; self[:"mode"]; end
|
|
224
|
+
# @rbs return: ::Integer
|
|
225
|
+
# @return [Integer]
|
|
226
|
+
def npools; self[:"npools"]; end
|
|
569
227
|
end
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
# @private
|
|
576
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
577
|
-
end
|
|
578
|
-
class Npools < Attribute
|
|
579
|
-
TYPE = 2
|
|
580
|
-
NAME = :"npools"
|
|
581
|
-
# @private
|
|
582
|
-
ORDER = 1
|
|
583
|
-
# @private
|
|
584
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
585
|
-
end
|
|
586
|
-
# @private
|
|
587
|
-
BY_NAME = Ractor.make_shareable({:"mode" => Mode, :"npools" => Npools}) #: Hash[::Symbol, Attribute]
|
|
588
|
-
# @private
|
|
589
|
-
BY_TYPE = Ractor.make_shareable({1 => Mode, 2 => Npools}) #: Hash[::Integer, Attribute]
|
|
590
|
-
# @rbs return: ::String
|
|
591
|
-
# @return [String]
|
|
592
|
-
# @see Mode
|
|
593
|
-
def mode; self[:"mode"]&.value; end
|
|
594
|
-
# @rbs return: ::Integer
|
|
595
|
-
# @return [Integer]
|
|
596
|
-
# @see Npools
|
|
597
|
-
def npools; self[:"npools"]&.value; end
|
|
598
|
-
class << self
|
|
599
|
-
# Looks up Attribute class by name.
|
|
600
|
-
# @rbs name: Symbol
|
|
601
|
-
# @rbs return: Attribute
|
|
602
|
-
# @param [Symbol] name
|
|
603
|
-
# @return [Attribute]
|
|
604
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
605
|
-
# Looks up Attribute class by type value.
|
|
606
|
-
# @rbs type: Integer
|
|
607
|
-
# @rbs return: Attribute
|
|
608
|
-
# @param [Integer] type
|
|
609
|
-
# @return [Attribute]
|
|
610
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
228
|
+
include Definitions
|
|
229
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
230
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
231
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
232
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
611
233
|
end
|
|
612
234
|
end
|
|
613
235
|
class Fslocation < ::Nl::AttributeSet
|
|
614
|
-
|
|
615
|
-
|
|
236
|
+
module Definitions
|
|
237
|
+
# @rbs return: ::String
|
|
238
|
+
# @return [String]
|
|
239
|
+
def host; self[:"host"]; end
|
|
240
|
+
# @rbs return: ::String
|
|
241
|
+
# @return [String]
|
|
242
|
+
def path; self[:"path"]; end
|
|
616
243
|
end
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
# @private
|
|
623
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
624
|
-
end
|
|
625
|
-
class Path < Attribute
|
|
626
|
-
TYPE = 2
|
|
627
|
-
NAME = :"path"
|
|
628
|
-
# @private
|
|
629
|
-
ORDER = 1
|
|
630
|
-
# @private
|
|
631
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
632
|
-
end
|
|
633
|
-
# @private
|
|
634
|
-
BY_NAME = Ractor.make_shareable({:"host" => Host, :"path" => Path}) #: Hash[::Symbol, Attribute]
|
|
635
|
-
# @private
|
|
636
|
-
BY_TYPE = Ractor.make_shareable({1 => Host, 2 => Path}) #: Hash[::Integer, Attribute]
|
|
637
|
-
# @rbs return: ::String
|
|
638
|
-
# @return [String]
|
|
639
|
-
# @see Host
|
|
640
|
-
def host; self[:"host"]&.value; end
|
|
641
|
-
# @rbs return: ::String
|
|
642
|
-
# @return [String]
|
|
643
|
-
# @see Path
|
|
644
|
-
def path; self[:"path"]&.value; end
|
|
645
|
-
class << self
|
|
646
|
-
# Looks up Attribute class by name.
|
|
647
|
-
# @rbs name: Symbol
|
|
648
|
-
# @rbs return: Attribute
|
|
649
|
-
# @param [Symbol] name
|
|
650
|
-
# @return [Attribute]
|
|
651
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
652
|
-
# Looks up Attribute class by type value.
|
|
653
|
-
# @rbs type: Integer
|
|
654
|
-
# @rbs return: Attribute
|
|
655
|
-
# @param [Integer] type
|
|
656
|
-
# @return [Attribute]
|
|
657
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
244
|
+
include Definitions
|
|
245
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
246
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
247
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
248
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
658
249
|
end
|
|
659
250
|
end
|
|
660
251
|
class Fslocations < ::Nl::AttributeSet
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
TYPE = 1
|
|
666
|
-
NAME = :"location"
|
|
667
|
-
# @private
|
|
668
|
-
MULTI = true
|
|
669
|
-
# @private
|
|
670
|
-
ORDER = 0
|
|
252
|
+
module Definitions
|
|
253
|
+
# @rbs return: ::Array[AttributeSets::Fslocation]
|
|
254
|
+
# @return [Array<AttributeSets::Fslocation>]
|
|
255
|
+
def location; self[:"location"]; end
|
|
671
256
|
end
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
# @
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
# @return [Array<AttributeSets::Fslocation>]
|
|
678
|
-
# @see Location
|
|
679
|
-
def location; self[:"location"].map(&:value); end
|
|
680
|
-
class << self
|
|
681
|
-
# Looks up Attribute class by name.
|
|
682
|
-
# @rbs name: Symbol
|
|
683
|
-
# @rbs return: Attribute
|
|
684
|
-
# @param [Symbol] name
|
|
685
|
-
# @return [Attribute]
|
|
686
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
687
|
-
# Looks up Attribute class by type value.
|
|
688
|
-
# @rbs type: Integer
|
|
689
|
-
# @rbs return: Attribute
|
|
690
|
-
# @param [Integer] type
|
|
691
|
-
# @return [Attribute]
|
|
692
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
257
|
+
include Definitions
|
|
258
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
259
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
260
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
261
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
693
262
|
end
|
|
694
263
|
end
|
|
695
264
|
class AuthFlavor < ::Nl::AttributeSet
|
|
696
|
-
|
|
697
|
-
|
|
265
|
+
module Definitions
|
|
266
|
+
# @rbs return: ::Integer
|
|
267
|
+
# @return [Integer]
|
|
268
|
+
def pseudoflavor; self[:"pseudoflavor"]; end
|
|
269
|
+
# Known flags are defined in {Flags::ExportFlags}.
|
|
270
|
+
# @rbs return: ::Integer
|
|
271
|
+
# @return [Integer]
|
|
272
|
+
def flags; self[:"flags"]; end
|
|
273
|
+
end
|
|
274
|
+
include Definitions
|
|
275
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
276
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
277
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
278
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
698
279
|
end
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
# @
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
280
|
+
end
|
|
281
|
+
class SvcExport < ::Nl::AttributeSet
|
|
282
|
+
module Definitions
|
|
283
|
+
# @rbs return: ::Integer
|
|
284
|
+
# @return [Integer]
|
|
285
|
+
def seqno; self[:"seqno"]; end
|
|
286
|
+
# @rbs return: ::String
|
|
287
|
+
# @return [String]
|
|
288
|
+
def client; self[:"client"]; end
|
|
289
|
+
# @rbs return: ::String
|
|
290
|
+
# @return [String]
|
|
291
|
+
def path; self[:"path"]; end
|
|
292
|
+
# @rbs return: ::Integer
|
|
293
|
+
# @return [Integer]
|
|
294
|
+
def negative; self[:"negative"]; end
|
|
295
|
+
# @rbs return: ::Integer
|
|
296
|
+
# @return [Integer]
|
|
297
|
+
def expiry; self[:"expiry"]; end
|
|
298
|
+
# @rbs return: ::Integer
|
|
299
|
+
# @return [Integer]
|
|
300
|
+
def anon_uid; self[:"anon_uid"]; end
|
|
301
|
+
# @rbs return: ::Integer
|
|
302
|
+
# @return [Integer]
|
|
303
|
+
def anon_gid; self[:"anon_gid"]; end
|
|
304
|
+
# @rbs return: AttributeSets::Fslocations
|
|
305
|
+
# @return [AttributeSets::Fslocations]
|
|
306
|
+
def fslocations; self[:"fslocations"]; end
|
|
307
|
+
# @rbs return: ::String
|
|
308
|
+
# @return [String]
|
|
309
|
+
def uuid; self[:"uuid"]; end
|
|
310
|
+
# @rbs return: ::Array[AttributeSets::AuthFlavor]
|
|
311
|
+
# @return [Array<AttributeSets::AuthFlavor>]
|
|
312
|
+
def secinfo; self[:"secinfo"]; end
|
|
313
|
+
# Known flags are defined in {Flags::XprtsecMode}.
|
|
314
|
+
# @rbs return: ::Array[::Integer]
|
|
315
|
+
# @return [Array<Integer>]
|
|
316
|
+
def xprtsec; self[:"xprtsec"]; end
|
|
317
|
+
# Known flags are defined in {Flags::ExportFlags}.
|
|
318
|
+
# @rbs return: ::Integer
|
|
319
|
+
# @return [Integer]
|
|
320
|
+
def flags; self[:"flags"]; end
|
|
321
|
+
# @rbs return: ::Integer
|
|
322
|
+
# @return [Integer]
|
|
323
|
+
def fsid; self[:"fsid"]; end
|
|
324
|
+
end
|
|
325
|
+
include Definitions
|
|
326
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
327
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
328
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
329
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
706
330
|
end
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
# @
|
|
712
|
-
|
|
713
|
-
# @private
|
|
714
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
331
|
+
end
|
|
332
|
+
class SvcExportReqs < ::Nl::AttributeSet
|
|
333
|
+
module Definitions
|
|
334
|
+
# @rbs return: ::Array[AttributeSets::SvcExport]
|
|
335
|
+
# @return [Array<AttributeSets::SvcExport>]
|
|
336
|
+
def requests; self[:"requests"]; end
|
|
715
337
|
end
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
# @
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
# @return [Integer]
|
|
722
|
-
# @see Pseudoflavor
|
|
723
|
-
def pseudoflavor; self[:"pseudoflavor"]&.value; end
|
|
724
|
-
# Known flags are defined in {Flags::ExportFlags}.
|
|
725
|
-
# @rbs return: ::Integer
|
|
726
|
-
# @return [Integer]
|
|
727
|
-
# @see Flags
|
|
728
|
-
def flags; self[:"flags"]&.value; end
|
|
729
|
-
class << self
|
|
730
|
-
# Looks up Attribute class by name.
|
|
731
|
-
# @rbs name: Symbol
|
|
732
|
-
# @rbs return: Attribute
|
|
733
|
-
# @param [Symbol] name
|
|
734
|
-
# @return [Attribute]
|
|
735
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
736
|
-
# Looks up Attribute class by type value.
|
|
737
|
-
# @rbs type: Integer
|
|
738
|
-
# @rbs return: Attribute
|
|
739
|
-
# @param [Integer] type
|
|
740
|
-
# @return [Attribute]
|
|
741
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
338
|
+
include Definitions
|
|
339
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
340
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
341
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
342
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
742
343
|
end
|
|
743
344
|
end
|
|
744
|
-
class
|
|
745
|
-
|
|
746
|
-
|
|
345
|
+
class Expkey < ::Nl::AttributeSet
|
|
346
|
+
module Definitions
|
|
347
|
+
# @rbs return: ::Integer
|
|
348
|
+
# @return [Integer]
|
|
349
|
+
def seqno; self[:"seqno"]; end
|
|
350
|
+
# @rbs return: ::String
|
|
351
|
+
# @return [String]
|
|
352
|
+
def client; self[:"client"]; end
|
|
353
|
+
# @rbs return: ::Integer
|
|
354
|
+
# @return [Integer]
|
|
355
|
+
def fsidtype; self[:"fsidtype"]; end
|
|
356
|
+
# @rbs return: ::String
|
|
357
|
+
# @return [String]
|
|
358
|
+
def fsid; self[:"fsid"]; end
|
|
359
|
+
# @rbs return: ::Integer
|
|
360
|
+
# @return [Integer]
|
|
361
|
+
def negative; self[:"negative"]; end
|
|
362
|
+
# @rbs return: ::Integer
|
|
363
|
+
# @return [Integer]
|
|
364
|
+
def expiry; self[:"expiry"]; end
|
|
365
|
+
# @rbs return: ::String
|
|
366
|
+
# @return [String]
|
|
367
|
+
def path; self[:"path"]; end
|
|
368
|
+
end
|
|
369
|
+
include Definitions
|
|
370
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
371
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
372
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
373
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
747
374
|
end
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
# @
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
|
|
375
|
+
end
|
|
376
|
+
class ExpkeyReqs < ::Nl::AttributeSet
|
|
377
|
+
module Definitions
|
|
378
|
+
# @rbs return: ::Array[AttributeSets::Expkey]
|
|
379
|
+
# @return [Array<AttributeSets::Expkey>]
|
|
380
|
+
def requests; self[:"requests"]; end
|
|
755
381
|
end
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
# @private
|
|
762
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
382
|
+
include Definitions
|
|
383
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
384
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
385
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
386
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
763
387
|
end
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
#
|
|
768
|
-
|
|
769
|
-
# @
|
|
770
|
-
|
|
388
|
+
end
|
|
389
|
+
class CacheFlush < ::Nl::AttributeSet
|
|
390
|
+
module Definitions
|
|
391
|
+
# Known flags are defined in {Flags::CacheType}.
|
|
392
|
+
# @rbs return: ::Integer
|
|
393
|
+
# @return [Integer]
|
|
394
|
+
def mask; self[:"mask"]; end
|
|
771
395
|
end
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
# @private
|
|
778
|
-
DATATYPE = ::Nl::DataTypes::Flag.new
|
|
396
|
+
include Definitions
|
|
397
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
398
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
399
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
400
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
779
401
|
end
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
#
|
|
784
|
-
|
|
785
|
-
# @
|
|
786
|
-
|
|
402
|
+
end
|
|
403
|
+
class UnlockIp < ::Nl::AttributeSet
|
|
404
|
+
module Definitions
|
|
405
|
+
# struct sockaddr_in or struct sockaddr_in6.
|
|
406
|
+
# @rbs return: ::String
|
|
407
|
+
# @return [String]
|
|
408
|
+
def address; self[:"address"]; end
|
|
787
409
|
end
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
# @private
|
|
794
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
410
|
+
include Definitions
|
|
411
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
412
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
413
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
414
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
795
415
|
end
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
#
|
|
800
|
-
|
|
801
|
-
# @
|
|
802
|
-
|
|
416
|
+
end
|
|
417
|
+
class UnlockFilesystem < ::Nl::AttributeSet
|
|
418
|
+
module Definitions
|
|
419
|
+
# Filesystem path whose state should be released.
|
|
420
|
+
# @rbs return: ::String
|
|
421
|
+
# @return [String]
|
|
422
|
+
def path; self[:"path"]; end
|
|
803
423
|
end
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
424
|
+
include Definitions
|
|
425
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
426
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
427
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
428
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
809
429
|
end
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
430
|
+
end
|
|
431
|
+
class UnlockExport < ::Nl::AttributeSet
|
|
432
|
+
module Definitions
|
|
433
|
+
# Export path whose NFSv4 state should be revoked. All state (opens, locks, delegations, layouts) acquired through any export of this path is revoked, regardless of which client holds the state. Intended for use after all clients have been unexported from a given path, enabling the underlying filesystem to be unmounted.
|
|
434
|
+
# @rbs return: ::String
|
|
435
|
+
# @return [String]
|
|
436
|
+
def path; self[:"path"]; end
|
|
437
|
+
end
|
|
438
|
+
include Definitions
|
|
439
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
440
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
441
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
442
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
443
|
+
end
|
|
444
|
+
end
|
|
445
|
+
class ServerProcEntry < ::Nl::AttributeSet
|
|
446
|
+
module Definitions
|
|
447
|
+
# @rbs return: ::Integer
|
|
448
|
+
# @return [Integer]
|
|
449
|
+
def op; self[:"op"]; end
|
|
450
|
+
# @rbs return: ::Integer
|
|
451
|
+
# @return [Integer]
|
|
452
|
+
def count; self[:"count"]; end
|
|
453
|
+
end
|
|
454
|
+
include Definitions
|
|
455
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
456
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
457
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
458
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
class ServerStats < ::Nl::AttributeSet
|
|
462
|
+
module Definitions
|
|
463
|
+
# @rbs return: ::Integer
|
|
464
|
+
# @return [Integer]
|
|
465
|
+
def rc_hits; self[:"rc_hits"]; end
|
|
466
|
+
# @rbs return: ::Integer
|
|
467
|
+
# @return [Integer]
|
|
468
|
+
def rc_misses; self[:"rc_misses"]; end
|
|
469
|
+
# @rbs return: ::Integer
|
|
470
|
+
# @return [Integer]
|
|
471
|
+
def rc_nocache; self[:"rc_nocache"]; end
|
|
472
|
+
# @rbs return: ::Integer
|
|
473
|
+
# @return [Integer]
|
|
474
|
+
def fh_stale; self[:"fh_stale"]; end
|
|
475
|
+
# @rbs return: ::Integer
|
|
476
|
+
# @return [Integer]
|
|
477
|
+
def io_read; self[:"io_read"]; end
|
|
478
|
+
# @rbs return: ::Integer
|
|
479
|
+
# @return [Integer]
|
|
480
|
+
def io_write; self[:"io_write"]; end
|
|
481
|
+
# @rbs return: ::Integer
|
|
482
|
+
# @return [Integer]
|
|
483
|
+
def netcnt; self[:"netcnt"]; end
|
|
484
|
+
# @rbs return: ::Integer
|
|
485
|
+
# @return [Integer]
|
|
486
|
+
def netudpcnt; self[:"netudpcnt"]; end
|
|
487
|
+
# @rbs return: ::Integer
|
|
488
|
+
# @return [Integer]
|
|
489
|
+
def nettcpcnt; self[:"nettcpcnt"]; end
|
|
490
|
+
# @rbs return: ::Integer
|
|
491
|
+
# @return [Integer]
|
|
492
|
+
def nettcpconn; self[:"nettcpconn"]; end
|
|
493
|
+
# @rbs return: ::Integer
|
|
494
|
+
# @return [Integer]
|
|
495
|
+
def rpccnt; self[:"rpccnt"]; end
|
|
496
|
+
# @rbs return: ::Integer
|
|
497
|
+
# @return [Integer]
|
|
498
|
+
def rpcbadfmt; self[:"rpcbadfmt"]; end
|
|
499
|
+
# @rbs return: ::Integer
|
|
500
|
+
# @return [Integer]
|
|
501
|
+
def rpcbadauth; self[:"rpcbadauth"]; end
|
|
502
|
+
# @rbs return: ::Integer
|
|
503
|
+
# @return [Integer]
|
|
504
|
+
def rpcbadclnt; self[:"rpcbadclnt"]; end
|
|
505
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
506
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
507
|
+
def proc2_ops; self[:"proc2_ops"]; end
|
|
508
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
509
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
510
|
+
def proc3_ops; self[:"proc3_ops"]; end
|
|
511
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
512
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
513
|
+
def proc4_ops; self[:"proc4_ops"]; end
|
|
514
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
515
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
516
|
+
def proc4ops_ops; self[:"proc4ops_ops"]; end
|
|
517
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
518
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
519
|
+
def proc4cb_ops; self[:"proc4cb_ops"]; end
|
|
520
|
+
end
|
|
521
|
+
include Definitions
|
|
522
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
523
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
524
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
525
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
module AttributeSets
|
|
530
|
+
class CacheNotify
|
|
531
|
+
module Definitions
|
|
813
532
|
# @private
|
|
814
|
-
|
|
533
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
534
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"cache_type", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
535
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
536
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
815
537
|
# @private
|
|
816
|
-
|
|
538
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
817
539
|
end
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
540
|
+
end
|
|
541
|
+
class RpcStatus
|
|
542
|
+
module Definitions
|
|
821
543
|
# @private
|
|
822
|
-
|
|
544
|
+
BY_TYPE = ::Array.new(15).tap do |definitions|
|
|
545
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"xid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Big::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
546
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
547
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"prog", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 2, selector_slot: nil)
|
|
548
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"version", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U8].new, multi: false, order: 3, selector_slot: nil)
|
|
549
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"proc", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
|
|
550
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"service_time", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S64].new, multi: false, order: 5, selector_slot: nil)
|
|
551
|
+
definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 6, selector_slot: nil)
|
|
552
|
+
definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"saddr4", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Big::U32].new, multi: false, order: 7, selector_slot: nil)
|
|
553
|
+
definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"daddr4", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Big::U32].new, multi: false, order: 8, selector_slot: nil)
|
|
554
|
+
definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"saddr6", datatype: ::Nl::DataTypes::Binary.new, multi: false, order: 9, selector_slot: nil)
|
|
555
|
+
definitions[11] = ::Nl::AttributeSet::Definition.new(id: 11, name: :"daddr6", datatype: ::Nl::DataTypes::Binary.new, multi: false, order: 10, selector_slot: nil)
|
|
556
|
+
definitions[12] = ::Nl::AttributeSet::Definition.new(id: 12, name: :"sport", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Big::U16].new, multi: false, order: 11, selector_slot: nil)
|
|
557
|
+
definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"dport", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Big::U16].new, multi: false, order: 12, selector_slot: nil)
|
|
558
|
+
definitions[14] = ::Nl::AttributeSet::Definition.new(id: 14, name: :"compound_ops", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: true, order: 13, selector_slot: nil)
|
|
559
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
560
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
823
561
|
# @private
|
|
824
|
-
|
|
562
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
825
563
|
end
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
NAME = :"xprtsec"
|
|
830
|
-
# @private
|
|
831
|
-
MULTI = true
|
|
564
|
+
end
|
|
565
|
+
class Server
|
|
566
|
+
module Definitions
|
|
832
567
|
# @private
|
|
833
|
-
|
|
568
|
+
BY_TYPE = ::Array.new(7).tap do |definitions|
|
|
569
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"threads", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: true, order: 0, selector_slot: nil)
|
|
570
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"gracetime", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
571
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"leasetime", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 2, selector_slot: nil)
|
|
572
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"scope", datatype: ::Nl::DataTypes::String.new, multi: false, order: 3, selector_slot: nil)
|
|
573
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"min_threads", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
|
|
574
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"fh_key", datatype: ::Nl::DataTypes::Checked.new(::Nl::DataTypes::Binary.new, check: nil.instance_exec { -> { raise ArgumentError, "Value #{it.inspect} is not equal to length 16" unless it.bytesize == 16 } }), multi: false, order: 5, selector_slot: nil)
|
|
575
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
576
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
834
577
|
# @private
|
|
835
|
-
|
|
578
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
836
579
|
end
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
NAME = :"flags"
|
|
580
|
+
end
|
|
581
|
+
class Version
|
|
582
|
+
module Definitions
|
|
841
583
|
# @private
|
|
842
|
-
|
|
584
|
+
BY_TYPE = ::Array.new(4).tap do |definitions|
|
|
585
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"major", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
586
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"minor", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
587
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"enabled", datatype: ::Nl::DataTypes::Flag.new, multi: false, order: 2, selector_slot: nil)
|
|
588
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
589
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
843
590
|
# @private
|
|
844
|
-
|
|
591
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
845
592
|
end
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
593
|
+
end
|
|
594
|
+
class ServerProto
|
|
595
|
+
module Definitions
|
|
849
596
|
# @private
|
|
850
|
-
|
|
597
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
598
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"version", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Version, selector_bindings: []), multi: true, order: 0, selector_slot: nil)
|
|
599
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
600
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
851
601
|
# @private
|
|
852
|
-
|
|
853
|
-
end
|
|
854
|
-
# @private
|
|
855
|
-
BY_NAME = Ractor.make_shareable({:"seqno" => Seqno, :"client" => Client, :"path" => Path, :"negative" => Negative, :"expiry" => Expiry, :"anon_uid" => AnonUid, :"anon_gid" => AnonGid, :"fslocations" => Fslocations, :"uuid" => Uuid, :"secinfo" => Secinfo, :"xprtsec" => Xprtsec, :"flags" => Flags, :"fsid" => Fsid}) #: Hash[::Symbol, Attribute]
|
|
856
|
-
# @private
|
|
857
|
-
BY_TYPE = Ractor.make_shareable({1 => Seqno, 2 => Client, 3 => Path, 4 => Negative, 5 => Expiry, 6 => AnonUid, 7 => AnonGid, 8 => Fslocations, 9 => Uuid, 10 => Secinfo, 11 => Xprtsec, 12 => Flags, 13 => Fsid}) #: Hash[::Integer, Attribute]
|
|
858
|
-
# @rbs return: ::Integer
|
|
859
|
-
# @return [Integer]
|
|
860
|
-
# @see Seqno
|
|
861
|
-
def seqno; self[:"seqno"]&.value; end
|
|
862
|
-
# @rbs return: ::String
|
|
863
|
-
# @return [String]
|
|
864
|
-
# @see Client
|
|
865
|
-
def client; self[:"client"]&.value; end
|
|
866
|
-
# @rbs return: ::String
|
|
867
|
-
# @return [String]
|
|
868
|
-
# @see Path
|
|
869
|
-
def path; self[:"path"]&.value; end
|
|
870
|
-
# @rbs return: ::Integer
|
|
871
|
-
# @return [Integer]
|
|
872
|
-
# @see Negative
|
|
873
|
-
def negative; self[:"negative"]&.value; end
|
|
874
|
-
# @rbs return: ::Integer
|
|
875
|
-
# @return [Integer]
|
|
876
|
-
# @see Expiry
|
|
877
|
-
def expiry; self[:"expiry"]&.value; end
|
|
878
|
-
# @rbs return: ::Integer
|
|
879
|
-
# @return [Integer]
|
|
880
|
-
# @see AnonUid
|
|
881
|
-
def anon_uid; self[:"anon_uid"]&.value; end
|
|
882
|
-
# @rbs return: ::Integer
|
|
883
|
-
# @return [Integer]
|
|
884
|
-
# @see AnonGid
|
|
885
|
-
def anon_gid; self[:"anon_gid"]&.value; end
|
|
886
|
-
# @rbs return: AttributeSets::Fslocations
|
|
887
|
-
# @return [AttributeSets::Fslocations]
|
|
888
|
-
# @see Fslocations
|
|
889
|
-
def fslocations; self[:"fslocations"]&.value; end
|
|
890
|
-
# @rbs return: ::String
|
|
891
|
-
# @return [String]
|
|
892
|
-
# @see Uuid
|
|
893
|
-
def uuid; self[:"uuid"]&.value; end
|
|
894
|
-
# @rbs return: ::Array[AttributeSets::AuthFlavor]
|
|
895
|
-
# @return [Array<AttributeSets::AuthFlavor>]
|
|
896
|
-
# @see Secinfo
|
|
897
|
-
def secinfo; self[:"secinfo"].map(&:value); end
|
|
898
|
-
# Known flags are defined in {Flags::XprtsecMode}.
|
|
899
|
-
# @rbs return: ::Array[::Integer]
|
|
900
|
-
# @return [Array<Integer>]
|
|
901
|
-
# @see Xprtsec
|
|
902
|
-
def xprtsec; self[:"xprtsec"].map(&:value); end
|
|
903
|
-
# Known flags are defined in {Flags::ExportFlags}.
|
|
904
|
-
# @rbs return: ::Integer
|
|
905
|
-
# @return [Integer]
|
|
906
|
-
# @see Flags
|
|
907
|
-
def flags; self[:"flags"]&.value; end
|
|
908
|
-
# @rbs return: ::Integer
|
|
909
|
-
# @return [Integer]
|
|
910
|
-
# @see Fsid
|
|
911
|
-
def fsid; self[:"fsid"]&.value; end
|
|
912
|
-
class << self
|
|
913
|
-
# Looks up Attribute class by name.
|
|
914
|
-
# @rbs name: Symbol
|
|
915
|
-
# @rbs return: Attribute
|
|
916
|
-
# @param [Symbol] name
|
|
917
|
-
# @return [Attribute]
|
|
918
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
919
|
-
# Looks up Attribute class by type value.
|
|
920
|
-
# @rbs type: Integer
|
|
921
|
-
# @rbs return: Attribute
|
|
922
|
-
# @param [Integer] type
|
|
923
|
-
# @return [Attribute]
|
|
924
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
602
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
925
603
|
end
|
|
926
604
|
end
|
|
927
|
-
class
|
|
928
|
-
|
|
929
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
930
|
-
end
|
|
931
|
-
class Requests < Attribute
|
|
932
|
-
TYPE = 1
|
|
933
|
-
NAME = :"requests"
|
|
605
|
+
class Sock
|
|
606
|
+
module Definitions
|
|
934
607
|
# @private
|
|
935
|
-
|
|
608
|
+
BY_TYPE = ::Array.new(3).tap do |definitions|
|
|
609
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"addr", datatype: ::Nl::DataTypes::Binary.new, multi: false, order: 0, selector_slot: nil)
|
|
610
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"transport_name", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
|
|
611
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
612
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
936
613
|
# @private
|
|
937
|
-
|
|
938
|
-
end
|
|
939
|
-
# @private
|
|
940
|
-
BY_NAME = Ractor.make_shareable({:"requests" => Requests}) #: Hash[::Symbol, Attribute]
|
|
941
|
-
# @private
|
|
942
|
-
BY_TYPE = Ractor.make_shareable({1 => Requests}) #: Hash[::Integer, Attribute]
|
|
943
|
-
# @rbs return: ::Array[AttributeSets::SvcExport]
|
|
944
|
-
# @return [Array<AttributeSets::SvcExport>]
|
|
945
|
-
# @see Requests
|
|
946
|
-
def requests; self[:"requests"].map(&:value); end
|
|
947
|
-
class << self
|
|
948
|
-
# Looks up Attribute class by name.
|
|
949
|
-
# @rbs name: Symbol
|
|
950
|
-
# @rbs return: Attribute
|
|
951
|
-
# @param [Symbol] name
|
|
952
|
-
# @return [Attribute]
|
|
953
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
954
|
-
# Looks up Attribute class by type value.
|
|
955
|
-
# @rbs type: Integer
|
|
956
|
-
# @rbs return: Attribute
|
|
957
|
-
# @param [Integer] type
|
|
958
|
-
# @return [Attribute]
|
|
959
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
614
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
960
615
|
end
|
|
961
616
|
end
|
|
962
|
-
class
|
|
963
|
-
|
|
964
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
965
|
-
end
|
|
966
|
-
class Seqno < Attribute
|
|
967
|
-
TYPE = 1
|
|
968
|
-
NAME = :"seqno"
|
|
617
|
+
class ServerSock
|
|
618
|
+
module Definitions
|
|
969
619
|
# @private
|
|
970
|
-
|
|
620
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
621
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"addr", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Sock, selector_bindings: []), multi: true, order: 0, selector_slot: nil)
|
|
622
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
623
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
971
624
|
# @private
|
|
972
|
-
|
|
625
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
973
626
|
end
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
627
|
+
end
|
|
628
|
+
class PoolMode
|
|
629
|
+
module Definitions
|
|
977
630
|
# @private
|
|
978
|
-
|
|
631
|
+
BY_TYPE = ::Array.new(3).tap do |definitions|
|
|
632
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"mode", datatype: ::Nl::DataTypes::String.new, multi: false, order: 0, selector_slot: nil)
|
|
633
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"npools", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
634
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
635
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
979
636
|
# @private
|
|
980
|
-
|
|
637
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
981
638
|
end
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
639
|
+
end
|
|
640
|
+
class Fslocation
|
|
641
|
+
module Definitions
|
|
985
642
|
# @private
|
|
986
|
-
|
|
643
|
+
BY_TYPE = ::Array.new(3).tap do |definitions|
|
|
644
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"host", datatype: ::Nl::DataTypes::String.new, multi: false, order: 0, selector_slot: nil)
|
|
645
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"path", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
|
|
646
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
647
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
987
648
|
# @private
|
|
988
|
-
|
|
649
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
989
650
|
end
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
651
|
+
end
|
|
652
|
+
class Fslocations
|
|
653
|
+
module Definitions
|
|
993
654
|
# @private
|
|
994
|
-
|
|
655
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
656
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"location", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Fslocation, selector_bindings: []), multi: true, order: 0, selector_slot: nil)
|
|
657
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
658
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
995
659
|
# @private
|
|
996
|
-
|
|
660
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
997
661
|
end
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
662
|
+
end
|
|
663
|
+
class AuthFlavor
|
|
664
|
+
module Definitions
|
|
1001
665
|
# @private
|
|
1002
|
-
|
|
666
|
+
BY_TYPE = ::Array.new(3).tap do |definitions|
|
|
667
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"pseudoflavor", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
668
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
669
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
670
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1003
671
|
# @private
|
|
1004
|
-
|
|
672
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1005
673
|
end
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
674
|
+
end
|
|
675
|
+
class SvcExport
|
|
676
|
+
module Definitions
|
|
1009
677
|
# @private
|
|
1010
|
-
|
|
678
|
+
BY_TYPE = ::Array.new(14).tap do |definitions|
|
|
679
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"seqno", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 0, selector_slot: nil)
|
|
680
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"client", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
|
|
681
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"path", datatype: ::Nl::DataTypes::String.new, multi: false, order: 2, selector_slot: nil)
|
|
682
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"negative", datatype: ::Nl::DataTypes::Flag.new, multi: false, order: 3, selector_slot: nil)
|
|
683
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"expiry", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 4, selector_slot: nil)
|
|
684
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"anon_uid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 5, selector_slot: nil)
|
|
685
|
+
definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"anon_gid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 6, selector_slot: nil)
|
|
686
|
+
definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"fslocations", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Fslocations, selector_bindings: []), multi: false, order: 7, selector_slot: nil)
|
|
687
|
+
definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"uuid", datatype: ::Nl::DataTypes::Binary.new, multi: false, order: 8, selector_slot: nil)
|
|
688
|
+
definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"secinfo", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::AuthFlavor, selector_bindings: []), multi: true, order: 9, selector_slot: nil)
|
|
689
|
+
definitions[11] = ::Nl::AttributeSet::Definition.new(id: 11, name: :"xprtsec", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: true, order: 10, selector_slot: nil)
|
|
690
|
+
definitions[12] = ::Nl::AttributeSet::Definition.new(id: 12, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 11, selector_slot: nil)
|
|
691
|
+
definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"fsid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S32].new, multi: false, order: 12, selector_slot: nil)
|
|
692
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
693
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1011
694
|
# @private
|
|
1012
|
-
|
|
695
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1013
696
|
end
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
697
|
+
end
|
|
698
|
+
class SvcExportReqs
|
|
699
|
+
module Definitions
|
|
1017
700
|
# @private
|
|
1018
|
-
|
|
701
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
702
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"requests", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::SvcExport, selector_bindings: []), multi: true, order: 0, selector_slot: nil)
|
|
703
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
704
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1019
705
|
# @private
|
|
1020
|
-
|
|
1021
|
-
end
|
|
1022
|
-
# @private
|
|
1023
|
-
BY_NAME = Ractor.make_shareable({:"seqno" => Seqno, :"client" => Client, :"fsidtype" => Fsidtype, :"fsid" => Fsid, :"negative" => Negative, :"expiry" => Expiry, :"path" => Path}) #: Hash[::Symbol, Attribute]
|
|
1024
|
-
# @private
|
|
1025
|
-
BY_TYPE = Ractor.make_shareable({1 => Seqno, 2 => Client, 3 => Fsidtype, 4 => Fsid, 5 => Negative, 6 => Expiry, 7 => Path}) #: Hash[::Integer, Attribute]
|
|
1026
|
-
# @rbs return: ::Integer
|
|
1027
|
-
# @return [Integer]
|
|
1028
|
-
# @see Seqno
|
|
1029
|
-
def seqno; self[:"seqno"]&.value; end
|
|
1030
|
-
# @rbs return: ::String
|
|
1031
|
-
# @return [String]
|
|
1032
|
-
# @see Client
|
|
1033
|
-
def client; self[:"client"]&.value; end
|
|
1034
|
-
# @rbs return: ::Integer
|
|
1035
|
-
# @return [Integer]
|
|
1036
|
-
# @see Fsidtype
|
|
1037
|
-
def fsidtype; self[:"fsidtype"]&.value; end
|
|
1038
|
-
# @rbs return: ::String
|
|
1039
|
-
# @return [String]
|
|
1040
|
-
# @see Fsid
|
|
1041
|
-
def fsid; self[:"fsid"]&.value; end
|
|
1042
|
-
# @rbs return: ::Integer
|
|
1043
|
-
# @return [Integer]
|
|
1044
|
-
# @see Negative
|
|
1045
|
-
def negative; self[:"negative"]&.value; end
|
|
1046
|
-
# @rbs return: ::Integer
|
|
1047
|
-
# @return [Integer]
|
|
1048
|
-
# @see Expiry
|
|
1049
|
-
def expiry; self[:"expiry"]&.value; end
|
|
1050
|
-
# @rbs return: ::String
|
|
1051
|
-
# @return [String]
|
|
1052
|
-
# @see Path
|
|
1053
|
-
def path; self[:"path"]&.value; end
|
|
1054
|
-
class << self
|
|
1055
|
-
# Looks up Attribute class by name.
|
|
1056
|
-
# @rbs name: Symbol
|
|
1057
|
-
# @rbs return: Attribute
|
|
1058
|
-
# @param [Symbol] name
|
|
1059
|
-
# @return [Attribute]
|
|
1060
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
1061
|
-
# Looks up Attribute class by type value.
|
|
1062
|
-
# @rbs type: Integer
|
|
1063
|
-
# @rbs return: Attribute
|
|
1064
|
-
# @param [Integer] type
|
|
1065
|
-
# @return [Attribute]
|
|
1066
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
706
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1067
707
|
end
|
|
1068
708
|
end
|
|
1069
|
-
class
|
|
1070
|
-
|
|
1071
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1072
|
-
end
|
|
1073
|
-
class Requests < Attribute
|
|
1074
|
-
TYPE = 1
|
|
1075
|
-
NAME = :"requests"
|
|
709
|
+
class Expkey
|
|
710
|
+
module Definitions
|
|
1076
711
|
# @private
|
|
1077
|
-
|
|
712
|
+
BY_TYPE = ::Array.new(8).tap do |definitions|
|
|
713
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"seqno", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 0, selector_slot: nil)
|
|
714
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"client", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
|
|
715
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"fsidtype", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U8].new, multi: false, order: 2, selector_slot: nil)
|
|
716
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"fsid", datatype: ::Nl::DataTypes::Binary.new, multi: false, order: 3, selector_slot: nil)
|
|
717
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"negative", datatype: ::Nl::DataTypes::Flag.new, multi: false, order: 4, selector_slot: nil)
|
|
718
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"expiry", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 5, selector_slot: nil)
|
|
719
|
+
definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"path", datatype: ::Nl::DataTypes::String.new, multi: false, order: 6, selector_slot: nil)
|
|
720
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
721
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1078
722
|
# @private
|
|
1079
|
-
|
|
1080
|
-
end
|
|
1081
|
-
# @private
|
|
1082
|
-
BY_NAME = Ractor.make_shareable({:"requests" => Requests}) #: Hash[::Symbol, Attribute]
|
|
1083
|
-
# @private
|
|
1084
|
-
BY_TYPE = Ractor.make_shareable({1 => Requests}) #: Hash[::Integer, Attribute]
|
|
1085
|
-
# @rbs return: ::Array[AttributeSets::Expkey]
|
|
1086
|
-
# @return [Array<AttributeSets::Expkey>]
|
|
1087
|
-
# @see Requests
|
|
1088
|
-
def requests; self[:"requests"].map(&:value); end
|
|
1089
|
-
class << self
|
|
1090
|
-
# Looks up Attribute class by name.
|
|
1091
|
-
# @rbs name: Symbol
|
|
1092
|
-
# @rbs return: Attribute
|
|
1093
|
-
# @param [Symbol] name
|
|
1094
|
-
# @return [Attribute]
|
|
1095
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
1096
|
-
# Looks up Attribute class by type value.
|
|
1097
|
-
# @rbs type: Integer
|
|
1098
|
-
# @rbs return: Attribute
|
|
1099
|
-
# @param [Integer] type
|
|
1100
|
-
# @return [Attribute]
|
|
1101
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
723
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1102
724
|
end
|
|
1103
725
|
end
|
|
1104
|
-
class
|
|
1105
|
-
|
|
1106
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1107
|
-
end
|
|
1108
|
-
# Known flags are defined in {Flags::CacheType}.
|
|
1109
|
-
class Mask < Attribute
|
|
1110
|
-
TYPE = 1
|
|
1111
|
-
NAME = :"mask"
|
|
726
|
+
class ExpkeyReqs
|
|
727
|
+
module Definitions
|
|
1112
728
|
# @private
|
|
1113
|
-
|
|
729
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
730
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"requests", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Expkey, selector_bindings: []), multi: true, order: 0, selector_slot: nil)
|
|
731
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
732
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1114
733
|
# @private
|
|
1115
|
-
|
|
1116
|
-
end
|
|
1117
|
-
# @private
|
|
1118
|
-
BY_NAME = Ractor.make_shareable({:"mask" => Mask}) #: Hash[::Symbol, Attribute]
|
|
1119
|
-
# @private
|
|
1120
|
-
BY_TYPE = Ractor.make_shareable({1 => Mask}) #: Hash[::Integer, Attribute]
|
|
1121
|
-
# Known flags are defined in {Flags::CacheType}.
|
|
1122
|
-
# @rbs return: ::Integer
|
|
1123
|
-
# @return [Integer]
|
|
1124
|
-
# @see Mask
|
|
1125
|
-
def mask; self[:"mask"]&.value; end
|
|
1126
|
-
class << self
|
|
1127
|
-
# Looks up Attribute class by name.
|
|
1128
|
-
# @rbs name: Symbol
|
|
1129
|
-
# @rbs return: Attribute
|
|
1130
|
-
# @param [Symbol] name
|
|
1131
|
-
# @return [Attribute]
|
|
1132
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
1133
|
-
# Looks up Attribute class by type value.
|
|
1134
|
-
# @rbs type: Integer
|
|
1135
|
-
# @rbs return: Attribute
|
|
1136
|
-
# @param [Integer] type
|
|
1137
|
-
# @return [Attribute]
|
|
1138
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
734
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1139
735
|
end
|
|
1140
736
|
end
|
|
1141
|
-
class
|
|
1142
|
-
|
|
1143
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1144
|
-
end
|
|
1145
|
-
# struct sockaddr_in or struct sockaddr_in6.
|
|
1146
|
-
class Address < Attribute
|
|
1147
|
-
TYPE = 1
|
|
1148
|
-
NAME = :"address"
|
|
737
|
+
class CacheFlush
|
|
738
|
+
module Definitions
|
|
1149
739
|
# @private
|
|
1150
|
-
|
|
740
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
741
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"mask", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
742
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
743
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1151
744
|
# @private
|
|
1152
|
-
|
|
1153
|
-
end
|
|
1154
|
-
# @private
|
|
1155
|
-
BY_NAME = Ractor.make_shareable({:"address" => Address}) #: Hash[::Symbol, Attribute]
|
|
1156
|
-
# @private
|
|
1157
|
-
BY_TYPE = Ractor.make_shareable({1 => Address}) #: Hash[::Integer, Attribute]
|
|
1158
|
-
# struct sockaddr_in or struct sockaddr_in6.
|
|
1159
|
-
# @rbs return: ::String
|
|
1160
|
-
# @return [String]
|
|
1161
|
-
# @see Address
|
|
1162
|
-
def address; self[:"address"]&.value; end
|
|
1163
|
-
class << self
|
|
1164
|
-
# Looks up Attribute class by name.
|
|
1165
|
-
# @rbs name: Symbol
|
|
1166
|
-
# @rbs return: Attribute
|
|
1167
|
-
# @param [Symbol] name
|
|
1168
|
-
# @return [Attribute]
|
|
1169
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
1170
|
-
# Looks up Attribute class by type value.
|
|
1171
|
-
# @rbs type: Integer
|
|
1172
|
-
# @rbs return: Attribute
|
|
1173
|
-
# @param [Integer] type
|
|
1174
|
-
# @return [Attribute]
|
|
1175
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
745
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1176
746
|
end
|
|
1177
747
|
end
|
|
1178
|
-
class
|
|
1179
|
-
|
|
1180
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1181
|
-
end
|
|
1182
|
-
# Filesystem path whose state should be released.
|
|
1183
|
-
class Path < Attribute
|
|
1184
|
-
TYPE = 1
|
|
1185
|
-
NAME = :"path"
|
|
748
|
+
class UnlockIp
|
|
749
|
+
module Definitions
|
|
1186
750
|
# @private
|
|
1187
|
-
|
|
751
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
752
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"address", datatype: ::Nl::DataTypes::Checked.new(::Nl::DataTypes::Binary.new, check: nil.instance_exec { -> { raise ArgumentError, "Value #{it.inspect} is shorter than minimum length 16" unless it.bytesize >= 16 } }), multi: false, order: 0, selector_slot: nil)
|
|
753
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
754
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1188
755
|
# @private
|
|
1189
|
-
|
|
756
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1190
757
|
end
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
# Looks up Attribute class by name.
|
|
1202
|
-
# @rbs name: Symbol
|
|
1203
|
-
# @rbs return: Attribute
|
|
1204
|
-
# @param [Symbol] name
|
|
1205
|
-
# @return [Attribute]
|
|
1206
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
1207
|
-
# Looks up Attribute class by type value.
|
|
1208
|
-
# @rbs type: Integer
|
|
1209
|
-
# @rbs return: Attribute
|
|
1210
|
-
# @param [Integer] type
|
|
1211
|
-
# @return [Attribute]
|
|
1212
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
758
|
+
end
|
|
759
|
+
class UnlockFilesystem
|
|
760
|
+
module Definitions
|
|
761
|
+
# @private
|
|
762
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
763
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"path", datatype: ::Nl::DataTypes::String.new, multi: false, order: 0, selector_slot: nil)
|
|
764
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
765
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
766
|
+
# @private
|
|
767
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1213
768
|
end
|
|
1214
769
|
end
|
|
1215
|
-
class UnlockExport
|
|
1216
|
-
|
|
1217
|
-
|
|
770
|
+
class UnlockExport
|
|
771
|
+
module Definitions
|
|
772
|
+
# @private
|
|
773
|
+
BY_TYPE = ::Array.new(2).tap do |definitions|
|
|
774
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"path", datatype: ::Nl::DataTypes::String.new, multi: false, order: 0, selector_slot: nil)
|
|
775
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
776
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
777
|
+
# @private
|
|
778
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1218
779
|
end
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
NAME = :"path"
|
|
780
|
+
end
|
|
781
|
+
class ServerProcEntry
|
|
782
|
+
module Definitions
|
|
1223
783
|
# @private
|
|
1224
|
-
|
|
784
|
+
BY_TYPE = ::Array.new(4).tap do |definitions|
|
|
785
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"op", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
786
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"count", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 1, selector_slot: nil)
|
|
787
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 2, selector_slot: nil)
|
|
788
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
789
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
1225
790
|
# @private
|
|
1226
|
-
|
|
791
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1227
792
|
end
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
793
|
+
end
|
|
794
|
+
class ServerStats
|
|
795
|
+
module Definitions
|
|
796
|
+
# @private
|
|
797
|
+
BY_TYPE = ::Array.new(21).tap do |definitions|
|
|
798
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"rc_hits", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 0, selector_slot: nil)
|
|
799
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"rc_misses", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 1, selector_slot: nil)
|
|
800
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"rc_nocache", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 2, selector_slot: nil)
|
|
801
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 3, selector_slot: nil)
|
|
802
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"fh_stale", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 4, selector_slot: nil)
|
|
803
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"io_read", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 5, selector_slot: nil)
|
|
804
|
+
definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"io_write", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 6, selector_slot: nil)
|
|
805
|
+
definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"netcnt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 7, selector_slot: nil)
|
|
806
|
+
definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"netudpcnt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 8, selector_slot: nil)
|
|
807
|
+
definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"nettcpcnt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 9, selector_slot: nil)
|
|
808
|
+
definitions[11] = ::Nl::AttributeSet::Definition.new(id: 11, name: :"nettcpconn", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 10, selector_slot: nil)
|
|
809
|
+
definitions[12] = ::Nl::AttributeSet::Definition.new(id: 12, name: :"rpccnt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 11, selector_slot: nil)
|
|
810
|
+
definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"rpcbadfmt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 12, selector_slot: nil)
|
|
811
|
+
definitions[14] = ::Nl::AttributeSet::Definition.new(id: 14, name: :"rpcbadauth", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 13, selector_slot: nil)
|
|
812
|
+
definitions[15] = ::Nl::AttributeSet::Definition.new(id: 15, name: :"rpcbadclnt", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 14, selector_slot: nil)
|
|
813
|
+
definitions[16] = ::Nl::AttributeSet::Definition.new(id: 16, name: :"proc2_ops", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ServerProcEntry, selector_bindings: []), multi: true, order: 15, selector_slot: nil)
|
|
814
|
+
definitions[17] = ::Nl::AttributeSet::Definition.new(id: 17, name: :"proc3_ops", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ServerProcEntry, selector_bindings: []), multi: true, order: 16, selector_slot: nil)
|
|
815
|
+
definitions[18] = ::Nl::AttributeSet::Definition.new(id: 18, name: :"proc4_ops", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ServerProcEntry, selector_bindings: []), multi: true, order: 17, selector_slot: nil)
|
|
816
|
+
definitions[19] = ::Nl::AttributeSet::Definition.new(id: 19, name: :"proc4ops_ops", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ServerProcEntry, selector_bindings: []), multi: true, order: 18, selector_slot: nil)
|
|
817
|
+
definitions[20] = ::Nl::AttributeSet::Definition.new(id: 20, name: :"proc4cb_ops", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ServerProcEntry, selector_bindings: []), multi: true, order: 19, selector_slot: nil)
|
|
818
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
819
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
820
|
+
# @private
|
|
821
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1250
822
|
end
|
|
1251
823
|
end
|
|
1252
|
-
# @private
|
|
1253
|
-
ServerProto::Version::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Version, selector_bindings: Ractor.make_shareable([]))
|
|
1254
|
-
# @private
|
|
1255
|
-
ServerSock::Addr::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Sock, selector_bindings: Ractor.make_shareable([]))
|
|
1256
|
-
# @private
|
|
1257
|
-
Fslocations::Location::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Fslocation, selector_bindings: Ractor.make_shareable([]))
|
|
1258
|
-
# @private
|
|
1259
|
-
SvcExport::Fslocations::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Fslocations, selector_bindings: Ractor.make_shareable([]))
|
|
1260
|
-
# @private
|
|
1261
|
-
SvcExport::Secinfo::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::AuthFlavor, selector_bindings: Ractor.make_shareable([]))
|
|
1262
|
-
# @private
|
|
1263
|
-
SvcExportReqs::Requests::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::SvcExport, selector_bindings: Ractor.make_shareable([]))
|
|
1264
|
-
# @private
|
|
1265
|
-
ExpkeyReqs::Requests::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Expkey, selector_bindings: Ractor.make_shareable([]))
|
|
1266
824
|
end
|
|
1267
825
|
module Messages
|
|
1268
826
|
# dump pending nfsd rpc
|
|
1269
|
-
class DumpRpcStatusGetRequest < ::Nl::
|
|
827
|
+
class DumpRpcStatusGetRequest < ::Nl::Message
|
|
1270
828
|
TYPE = 1
|
|
1271
829
|
FIXED_HEADER = nil
|
|
1272
830
|
ATTRIBUTE_SET = AttributeSets::RpcStatus
|
|
1273
|
-
ATTRIBUTES =
|
|
831
|
+
ATTRIBUTES = %i[].freeze
|
|
832
|
+
include ATTRIBUTE_SET::Definitions
|
|
833
|
+
def initialize(attributes = [])
|
|
834
|
+
@attributes = attributes
|
|
835
|
+
end
|
|
836
|
+
# @private
|
|
837
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
838
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
839
|
+
new(
|
|
840
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
841
|
+
)
|
|
842
|
+
end
|
|
843
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
844
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
845
|
+
def self.decode(decoder)
|
|
846
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
847
|
+
end
|
|
848
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
849
|
+
encode_attributes(encoder, external_selectors:)
|
|
850
|
+
end
|
|
1274
851
|
end
|
|
1275
852
|
# dump pending nfsd rpc
|
|
1276
|
-
class DumpRpcStatusGetReply < ::Nl::
|
|
853
|
+
class DumpRpcStatusGetReply < ::Nl::Message
|
|
1277
854
|
TYPE = 1
|
|
1278
855
|
FIXED_HEADER = nil
|
|
1279
856
|
ATTRIBUTE_SET = AttributeSets::RpcStatus
|
|
1280
|
-
ATTRIBUTES =
|
|
857
|
+
ATTRIBUTES = %i[xid flags prog version proc service_time saddr4 daddr4 saddr6 daddr6 sport dport compound_ops].freeze
|
|
858
|
+
include ATTRIBUTE_SET::Definitions
|
|
859
|
+
def initialize(attributes = [])
|
|
860
|
+
@attributes = attributes
|
|
861
|
+
end
|
|
862
|
+
# @private
|
|
863
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
864
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
865
|
+
new(
|
|
866
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
867
|
+
)
|
|
868
|
+
end
|
|
869
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
870
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
871
|
+
def self.decode(decoder)
|
|
872
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
873
|
+
end
|
|
874
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
875
|
+
encode_attributes(encoder, external_selectors:)
|
|
876
|
+
end
|
|
1281
877
|
# @rbs return: ::Integer
|
|
1282
878
|
# @return [Integer]
|
|
1283
|
-
|
|
1284
|
-
def xid; attributes[:"xid"]&.value; end
|
|
879
|
+
def xid; self[:"xid"]; end
|
|
1285
880
|
# @rbs return: ::Integer
|
|
1286
881
|
# @return [Integer]
|
|
1287
|
-
|
|
1288
|
-
def flags; attributes[:"flags"]&.value; end
|
|
882
|
+
def flags; self[:"flags"]; end
|
|
1289
883
|
# @rbs return: ::Integer
|
|
1290
884
|
# @return [Integer]
|
|
1291
|
-
|
|
1292
|
-
def prog; attributes[:"prog"]&.value; end
|
|
885
|
+
def prog; self[:"prog"]; end
|
|
1293
886
|
# @rbs return: ::Integer
|
|
1294
887
|
# @return [Integer]
|
|
1295
|
-
|
|
1296
|
-
def version; attributes[:"version"]&.value; end
|
|
888
|
+
def version; self[:"version"]; end
|
|
1297
889
|
# @rbs return: ::Integer
|
|
1298
890
|
# @return [Integer]
|
|
1299
|
-
|
|
1300
|
-
def proc; attributes[:"proc"]&.value; end
|
|
891
|
+
def proc; self[:"proc"]; end
|
|
1301
892
|
# @rbs return: ::Integer
|
|
1302
893
|
# @return [Integer]
|
|
1303
|
-
|
|
1304
|
-
def service_time; attributes[:"service_time"]&.value; end
|
|
894
|
+
def service_time; self[:"service_time"]; end
|
|
1305
895
|
# @rbs return: ::Integer
|
|
1306
896
|
# @return [Integer]
|
|
1307
|
-
|
|
1308
|
-
def saddr4; attributes[:"saddr4"]&.value; end
|
|
897
|
+
def saddr4; self[:"saddr4"]; end
|
|
1309
898
|
# @rbs return: ::Integer
|
|
1310
899
|
# @return [Integer]
|
|
1311
|
-
|
|
1312
|
-
def daddr4; attributes[:"daddr4"]&.value; end
|
|
900
|
+
def daddr4; self[:"daddr4"]; end
|
|
1313
901
|
# @rbs return: ::String
|
|
1314
902
|
# @return [String]
|
|
1315
|
-
|
|
1316
|
-
def saddr6; attributes[:"saddr6"]&.value; end
|
|
903
|
+
def saddr6; self[:"saddr6"]; end
|
|
1317
904
|
# @rbs return: ::String
|
|
1318
905
|
# @return [String]
|
|
1319
|
-
|
|
1320
|
-
def daddr6; attributes[:"daddr6"]&.value; end
|
|
906
|
+
def daddr6; self[:"daddr6"]; end
|
|
1321
907
|
# @rbs return: ::Integer
|
|
1322
908
|
# @return [Integer]
|
|
1323
|
-
|
|
1324
|
-
def sport; attributes[:"sport"]&.value; end
|
|
909
|
+
def sport; self[:"sport"]; end
|
|
1325
910
|
# @rbs return: ::Integer
|
|
1326
911
|
# @return [Integer]
|
|
1327
|
-
|
|
1328
|
-
def dport; attributes[:"dport"]&.value; end
|
|
912
|
+
def dport; self[:"dport"]; end
|
|
1329
913
|
# @rbs return: ::Array[::Integer]
|
|
1330
914
|
# @return [Array<Integer>]
|
|
1331
|
-
|
|
1332
|
-
def compound_ops; attributes[:"compound_ops"].map(&:value); end
|
|
915
|
+
def compound_ops; self[:"compound_ops"]; end
|
|
1333
916
|
end
|
|
1334
917
|
# set the maximum number of running threads
|
|
1335
918
|
#
|
|
1336
919
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1337
|
-
class DoThreadsSetRequest < ::Nl::
|
|
920
|
+
class DoThreadsSetRequest < ::Nl::Message
|
|
1338
921
|
TYPE = 2
|
|
1339
922
|
FIXED_HEADER = nil
|
|
1340
923
|
ATTRIBUTE_SET = AttributeSets::Server
|
|
1341
|
-
ATTRIBUTES =
|
|
924
|
+
ATTRIBUTES = %i[threads gracetime leasetime scope min_threads fh_key].freeze
|
|
925
|
+
include ATTRIBUTE_SET::Definitions
|
|
926
|
+
def initialize(attributes = [])
|
|
927
|
+
@attributes = attributes
|
|
928
|
+
end
|
|
929
|
+
# @private
|
|
930
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
931
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
932
|
+
new(
|
|
933
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
934
|
+
)
|
|
935
|
+
end
|
|
936
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
937
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
938
|
+
def self.decode(decoder)
|
|
939
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
940
|
+
end
|
|
941
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
942
|
+
encode_attributes(encoder, external_selectors:)
|
|
943
|
+
end
|
|
1342
944
|
# @rbs return: ::Array[::Integer]
|
|
1343
945
|
# @return [Array<Integer>]
|
|
1344
|
-
|
|
1345
|
-
def threads; attributes[:"threads"].map(&:value); end
|
|
946
|
+
def threads; self[:"threads"]; end
|
|
1346
947
|
# @rbs return: ::Integer
|
|
1347
948
|
# @return [Integer]
|
|
1348
|
-
|
|
1349
|
-
def gracetime; attributes[:"gracetime"]&.value; end
|
|
949
|
+
def gracetime; self[:"gracetime"]; end
|
|
1350
950
|
# @rbs return: ::Integer
|
|
1351
951
|
# @return [Integer]
|
|
1352
|
-
|
|
1353
|
-
def leasetime; attributes[:"leasetime"]&.value; end
|
|
952
|
+
def leasetime; self[:"leasetime"]; end
|
|
1354
953
|
# @rbs return: ::String
|
|
1355
954
|
# @return [String]
|
|
1356
|
-
|
|
1357
|
-
def scope; attributes[:"scope"]&.value; end
|
|
955
|
+
def scope; self[:"scope"]; end
|
|
1358
956
|
# @rbs return: ::Integer
|
|
1359
957
|
# @return [Integer]
|
|
1360
|
-
|
|
1361
|
-
def min_threads; attributes[:"min_threads"]&.value; end
|
|
958
|
+
def min_threads; self[:"min_threads"]; end
|
|
1362
959
|
# @rbs return: ::String
|
|
1363
960
|
# @return [String]
|
|
1364
|
-
|
|
1365
|
-
def fh_key; attributes[:"fh_key"]&.value; end
|
|
961
|
+
def fh_key; self[:"fh_key"]; end
|
|
1366
962
|
end
|
|
1367
963
|
# get the maximum number of running threads
|
|
1368
|
-
class DoThreadsGetRequest < ::Nl::
|
|
964
|
+
class DoThreadsGetRequest < ::Nl::Message
|
|
1369
965
|
TYPE = 3
|
|
1370
966
|
FIXED_HEADER = nil
|
|
1371
967
|
ATTRIBUTE_SET = AttributeSets::Server
|
|
1372
|
-
ATTRIBUTES =
|
|
968
|
+
ATTRIBUTES = %i[].freeze
|
|
969
|
+
include ATTRIBUTE_SET::Definitions
|
|
970
|
+
def initialize(attributes = [])
|
|
971
|
+
@attributes = attributes
|
|
972
|
+
end
|
|
973
|
+
# @private
|
|
974
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
975
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
976
|
+
new(
|
|
977
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
978
|
+
)
|
|
979
|
+
end
|
|
980
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
981
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
982
|
+
def self.decode(decoder)
|
|
983
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
984
|
+
end
|
|
985
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
986
|
+
encode_attributes(encoder, external_selectors:)
|
|
987
|
+
end
|
|
1373
988
|
end
|
|
1374
989
|
# get the maximum number of running threads
|
|
1375
|
-
class DoThreadsGetReply < ::Nl::
|
|
990
|
+
class DoThreadsGetReply < ::Nl::Message
|
|
1376
991
|
TYPE = 3
|
|
1377
992
|
FIXED_HEADER = nil
|
|
1378
993
|
ATTRIBUTE_SET = AttributeSets::Server
|
|
1379
|
-
ATTRIBUTES =
|
|
994
|
+
ATTRIBUTES = %i[threads gracetime leasetime scope min_threads].freeze
|
|
995
|
+
include ATTRIBUTE_SET::Definitions
|
|
996
|
+
def initialize(attributes = [])
|
|
997
|
+
@attributes = attributes
|
|
998
|
+
end
|
|
999
|
+
# @private
|
|
1000
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1001
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1002
|
+
new(
|
|
1003
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1004
|
+
)
|
|
1005
|
+
end
|
|
1006
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1007
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1008
|
+
def self.decode(decoder)
|
|
1009
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1010
|
+
end
|
|
1011
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1012
|
+
encode_attributes(encoder, external_selectors:)
|
|
1013
|
+
end
|
|
1380
1014
|
# @rbs return: ::Array[::Integer]
|
|
1381
1015
|
# @return [Array<Integer>]
|
|
1382
|
-
|
|
1383
|
-
def threads; attributes[:"threads"].map(&:value); end
|
|
1016
|
+
def threads; self[:"threads"]; end
|
|
1384
1017
|
# @rbs return: ::Integer
|
|
1385
1018
|
# @return [Integer]
|
|
1386
|
-
|
|
1387
|
-
def gracetime; attributes[:"gracetime"]&.value; end
|
|
1019
|
+
def gracetime; self[:"gracetime"]; end
|
|
1388
1020
|
# @rbs return: ::Integer
|
|
1389
1021
|
# @return [Integer]
|
|
1390
|
-
|
|
1391
|
-
def leasetime; attributes[:"leasetime"]&.value; end
|
|
1022
|
+
def leasetime; self[:"leasetime"]; end
|
|
1392
1023
|
# @rbs return: ::String
|
|
1393
1024
|
# @return [String]
|
|
1394
|
-
|
|
1395
|
-
def scope; attributes[:"scope"]&.value; end
|
|
1025
|
+
def scope; self[:"scope"]; end
|
|
1396
1026
|
# @rbs return: ::Integer
|
|
1397
1027
|
# @return [Integer]
|
|
1398
|
-
|
|
1399
|
-
def min_threads; attributes[:"min_threads"]&.value; end
|
|
1028
|
+
def min_threads; self[:"min_threads"]; end
|
|
1400
1029
|
end
|
|
1401
1030
|
# set nfs enabled versions
|
|
1402
1031
|
#
|
|
1403
1032
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1404
|
-
class DoVersionSetRequest < ::Nl::
|
|
1033
|
+
class DoVersionSetRequest < ::Nl::Message
|
|
1405
1034
|
TYPE = 4
|
|
1406
1035
|
FIXED_HEADER = nil
|
|
1407
1036
|
ATTRIBUTE_SET = AttributeSets::ServerProto
|
|
1408
|
-
ATTRIBUTES =
|
|
1037
|
+
ATTRIBUTES = %i[version].freeze
|
|
1038
|
+
include ATTRIBUTE_SET::Definitions
|
|
1039
|
+
def initialize(attributes = [])
|
|
1040
|
+
@attributes = attributes
|
|
1041
|
+
end
|
|
1042
|
+
# @private
|
|
1043
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1044
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1045
|
+
new(
|
|
1046
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1047
|
+
)
|
|
1048
|
+
end
|
|
1049
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1050
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1051
|
+
def self.decode(decoder)
|
|
1052
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1053
|
+
end
|
|
1054
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1055
|
+
encode_attributes(encoder, external_selectors:)
|
|
1056
|
+
end
|
|
1409
1057
|
# @rbs return: ::Array[AttributeSets::Version]
|
|
1410
1058
|
# @return [Array<AttributeSets::Version>]
|
|
1411
|
-
|
|
1412
|
-
def version; attributes[:"version"].map(&:value); end
|
|
1059
|
+
def version; self[:"version"]; end
|
|
1413
1060
|
end
|
|
1414
1061
|
# get nfs enabled versions
|
|
1415
|
-
class DoVersionGetRequest < ::Nl::
|
|
1062
|
+
class DoVersionGetRequest < ::Nl::Message
|
|
1416
1063
|
TYPE = 5
|
|
1417
1064
|
FIXED_HEADER = nil
|
|
1418
1065
|
ATTRIBUTE_SET = AttributeSets::ServerProto
|
|
1419
|
-
ATTRIBUTES =
|
|
1066
|
+
ATTRIBUTES = %i[].freeze
|
|
1067
|
+
include ATTRIBUTE_SET::Definitions
|
|
1068
|
+
def initialize(attributes = [])
|
|
1069
|
+
@attributes = attributes
|
|
1070
|
+
end
|
|
1071
|
+
# @private
|
|
1072
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1073
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1074
|
+
new(
|
|
1075
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1076
|
+
)
|
|
1077
|
+
end
|
|
1078
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1079
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1080
|
+
def self.decode(decoder)
|
|
1081
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1082
|
+
end
|
|
1083
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1084
|
+
encode_attributes(encoder, external_selectors:)
|
|
1085
|
+
end
|
|
1420
1086
|
end
|
|
1421
1087
|
# get nfs enabled versions
|
|
1422
|
-
class DoVersionGetReply < ::Nl::
|
|
1088
|
+
class DoVersionGetReply < ::Nl::Message
|
|
1423
1089
|
TYPE = 5
|
|
1424
1090
|
FIXED_HEADER = nil
|
|
1425
1091
|
ATTRIBUTE_SET = AttributeSets::ServerProto
|
|
1426
|
-
ATTRIBUTES =
|
|
1092
|
+
ATTRIBUTES = %i[version].freeze
|
|
1093
|
+
include ATTRIBUTE_SET::Definitions
|
|
1094
|
+
def initialize(attributes = [])
|
|
1095
|
+
@attributes = attributes
|
|
1096
|
+
end
|
|
1097
|
+
# @private
|
|
1098
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1099
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1100
|
+
new(
|
|
1101
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1102
|
+
)
|
|
1103
|
+
end
|
|
1104
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1105
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1106
|
+
def self.decode(decoder)
|
|
1107
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1108
|
+
end
|
|
1109
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1110
|
+
encode_attributes(encoder, external_selectors:)
|
|
1111
|
+
end
|
|
1427
1112
|
# @rbs return: ::Array[AttributeSets::Version]
|
|
1428
1113
|
# @return [Array<AttributeSets::Version>]
|
|
1429
|
-
|
|
1430
|
-
def version; attributes[:"version"].map(&:value); end
|
|
1114
|
+
def version; self[:"version"]; end
|
|
1431
1115
|
end
|
|
1432
1116
|
# set nfs running sockets
|
|
1433
1117
|
#
|
|
1434
1118
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1435
|
-
class DoListenerSetRequest < ::Nl::
|
|
1119
|
+
class DoListenerSetRequest < ::Nl::Message
|
|
1436
1120
|
TYPE = 6
|
|
1437
1121
|
FIXED_HEADER = nil
|
|
1438
1122
|
ATTRIBUTE_SET = AttributeSets::ServerSock
|
|
1439
|
-
ATTRIBUTES =
|
|
1123
|
+
ATTRIBUTES = %i[addr].freeze
|
|
1124
|
+
include ATTRIBUTE_SET::Definitions
|
|
1125
|
+
def initialize(attributes = [])
|
|
1126
|
+
@attributes = attributes
|
|
1127
|
+
end
|
|
1128
|
+
# @private
|
|
1129
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1130
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1131
|
+
new(
|
|
1132
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1133
|
+
)
|
|
1134
|
+
end
|
|
1135
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1136
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1137
|
+
def self.decode(decoder)
|
|
1138
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1139
|
+
end
|
|
1140
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1141
|
+
encode_attributes(encoder, external_selectors:)
|
|
1142
|
+
end
|
|
1440
1143
|
# @rbs return: ::Array[AttributeSets::Sock]
|
|
1441
1144
|
# @return [Array<AttributeSets::Sock>]
|
|
1442
|
-
|
|
1443
|
-
def addr; attributes[:"addr"].map(&:value); end
|
|
1145
|
+
def addr; self[:"addr"]; end
|
|
1444
1146
|
end
|
|
1445
1147
|
# get nfs running listeners
|
|
1446
|
-
class DoListenerGetRequest < ::Nl::
|
|
1148
|
+
class DoListenerGetRequest < ::Nl::Message
|
|
1447
1149
|
TYPE = 7
|
|
1448
1150
|
FIXED_HEADER = nil
|
|
1449
1151
|
ATTRIBUTE_SET = AttributeSets::ServerSock
|
|
1450
|
-
ATTRIBUTES =
|
|
1152
|
+
ATTRIBUTES = %i[].freeze
|
|
1153
|
+
include ATTRIBUTE_SET::Definitions
|
|
1154
|
+
def initialize(attributes = [])
|
|
1155
|
+
@attributes = attributes
|
|
1156
|
+
end
|
|
1157
|
+
# @private
|
|
1158
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1159
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1160
|
+
new(
|
|
1161
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1162
|
+
)
|
|
1163
|
+
end
|
|
1164
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1165
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1166
|
+
def self.decode(decoder)
|
|
1167
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1168
|
+
end
|
|
1169
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1170
|
+
encode_attributes(encoder, external_selectors:)
|
|
1171
|
+
end
|
|
1451
1172
|
end
|
|
1452
1173
|
# get nfs running listeners
|
|
1453
|
-
class DoListenerGetReply < ::Nl::
|
|
1174
|
+
class DoListenerGetReply < ::Nl::Message
|
|
1454
1175
|
TYPE = 7
|
|
1455
1176
|
FIXED_HEADER = nil
|
|
1456
1177
|
ATTRIBUTE_SET = AttributeSets::ServerSock
|
|
1457
|
-
ATTRIBUTES =
|
|
1178
|
+
ATTRIBUTES = %i[addr].freeze
|
|
1179
|
+
include ATTRIBUTE_SET::Definitions
|
|
1180
|
+
def initialize(attributes = [])
|
|
1181
|
+
@attributes = attributes
|
|
1182
|
+
end
|
|
1183
|
+
# @private
|
|
1184
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1185
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1186
|
+
new(
|
|
1187
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1188
|
+
)
|
|
1189
|
+
end
|
|
1190
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1191
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1192
|
+
def self.decode(decoder)
|
|
1193
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1194
|
+
end
|
|
1195
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1196
|
+
encode_attributes(encoder, external_selectors:)
|
|
1197
|
+
end
|
|
1458
1198
|
# @rbs return: ::Array[AttributeSets::Sock]
|
|
1459
1199
|
# @return [Array<AttributeSets::Sock>]
|
|
1460
|
-
|
|
1461
|
-
def addr; attributes[:"addr"].map(&:value); end
|
|
1200
|
+
def addr; self[:"addr"]; end
|
|
1462
1201
|
end
|
|
1463
1202
|
# set the current server pool-mode
|
|
1464
1203
|
#
|
|
1465
1204
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1466
|
-
class DoPoolModeSetRequest < ::Nl::
|
|
1205
|
+
class DoPoolModeSetRequest < ::Nl::Message
|
|
1467
1206
|
TYPE = 8
|
|
1468
1207
|
FIXED_HEADER = nil
|
|
1469
1208
|
ATTRIBUTE_SET = AttributeSets::PoolMode
|
|
1470
|
-
ATTRIBUTES =
|
|
1209
|
+
ATTRIBUTES = %i[mode].freeze
|
|
1210
|
+
include ATTRIBUTE_SET::Definitions
|
|
1211
|
+
def initialize(attributes = [])
|
|
1212
|
+
@attributes = attributes
|
|
1213
|
+
end
|
|
1214
|
+
# @private
|
|
1215
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1216
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1217
|
+
new(
|
|
1218
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1219
|
+
)
|
|
1220
|
+
end
|
|
1221
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1222
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1223
|
+
def self.decode(decoder)
|
|
1224
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1225
|
+
end
|
|
1226
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1227
|
+
encode_attributes(encoder, external_selectors:)
|
|
1228
|
+
end
|
|
1471
1229
|
# @rbs return: ::String
|
|
1472
1230
|
# @return [String]
|
|
1473
|
-
|
|
1474
|
-
def mode; attributes[:"mode"]&.value; end
|
|
1231
|
+
def mode; self[:"mode"]; end
|
|
1475
1232
|
end
|
|
1476
1233
|
# get info about server pool-mode
|
|
1477
|
-
class DoPoolModeGetRequest < ::Nl::
|
|
1234
|
+
class DoPoolModeGetRequest < ::Nl::Message
|
|
1478
1235
|
TYPE = 9
|
|
1479
1236
|
FIXED_HEADER = nil
|
|
1480
1237
|
ATTRIBUTE_SET = AttributeSets::PoolMode
|
|
1481
|
-
ATTRIBUTES =
|
|
1238
|
+
ATTRIBUTES = %i[].freeze
|
|
1239
|
+
include ATTRIBUTE_SET::Definitions
|
|
1240
|
+
def initialize(attributes = [])
|
|
1241
|
+
@attributes = attributes
|
|
1242
|
+
end
|
|
1243
|
+
# @private
|
|
1244
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1245
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1246
|
+
new(
|
|
1247
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1248
|
+
)
|
|
1249
|
+
end
|
|
1250
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1251
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1252
|
+
def self.decode(decoder)
|
|
1253
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1254
|
+
end
|
|
1255
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1256
|
+
encode_attributes(encoder, external_selectors:)
|
|
1257
|
+
end
|
|
1482
1258
|
end
|
|
1483
1259
|
# get info about server pool-mode
|
|
1484
|
-
class DoPoolModeGetReply < ::Nl::
|
|
1260
|
+
class DoPoolModeGetReply < ::Nl::Message
|
|
1485
1261
|
TYPE = 9
|
|
1486
1262
|
FIXED_HEADER = nil
|
|
1487
1263
|
ATTRIBUTE_SET = AttributeSets::PoolMode
|
|
1488
|
-
ATTRIBUTES =
|
|
1264
|
+
ATTRIBUTES = %i[mode npools].freeze
|
|
1265
|
+
include ATTRIBUTE_SET::Definitions
|
|
1266
|
+
def initialize(attributes = [])
|
|
1267
|
+
@attributes = attributes
|
|
1268
|
+
end
|
|
1269
|
+
# @private
|
|
1270
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1271
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1272
|
+
new(
|
|
1273
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1274
|
+
)
|
|
1275
|
+
end
|
|
1276
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1277
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1278
|
+
def self.decode(decoder)
|
|
1279
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1280
|
+
end
|
|
1281
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1282
|
+
encode_attributes(encoder, external_selectors:)
|
|
1283
|
+
end
|
|
1489
1284
|
# @rbs return: ::String
|
|
1490
1285
|
# @return [String]
|
|
1491
|
-
|
|
1492
|
-
def mode; attributes[:"mode"]&.value; end
|
|
1286
|
+
def mode; self[:"mode"]; end
|
|
1493
1287
|
# @rbs return: ::Integer
|
|
1494
1288
|
# @return [Integer]
|
|
1495
|
-
|
|
1496
|
-
def npools; attributes[:"npools"]&.value; end
|
|
1289
|
+
def npools; self[:"npools"]; end
|
|
1497
1290
|
end
|
|
1498
1291
|
# Dump all pending svc_export requests
|
|
1499
1292
|
#
|
|
1500
1293
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1501
|
-
class DumpSvcExportGetReqsRequest < ::Nl::
|
|
1294
|
+
class DumpSvcExportGetReqsRequest < ::Nl::Message
|
|
1502
1295
|
TYPE = 11
|
|
1503
1296
|
FIXED_HEADER = nil
|
|
1504
1297
|
ATTRIBUTE_SET = AttributeSets::SvcExportReqs
|
|
1505
|
-
ATTRIBUTES =
|
|
1298
|
+
ATTRIBUTES = %i[].freeze
|
|
1299
|
+
include ATTRIBUTE_SET::Definitions
|
|
1300
|
+
def initialize(attributes = [])
|
|
1301
|
+
@attributes = attributes
|
|
1302
|
+
end
|
|
1303
|
+
# @private
|
|
1304
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1305
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1306
|
+
new(
|
|
1307
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1308
|
+
)
|
|
1309
|
+
end
|
|
1310
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1311
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1312
|
+
def self.decode(decoder)
|
|
1313
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1314
|
+
end
|
|
1315
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1316
|
+
encode_attributes(encoder, external_selectors:)
|
|
1317
|
+
end
|
|
1506
1318
|
end
|
|
1507
1319
|
# Dump all pending svc_export requests
|
|
1508
1320
|
#
|
|
1509
1321
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1510
|
-
class DumpSvcExportGetReqsReply < ::Nl::
|
|
1322
|
+
class DumpSvcExportGetReqsReply < ::Nl::Message
|
|
1511
1323
|
TYPE = 11
|
|
1512
1324
|
FIXED_HEADER = nil
|
|
1513
1325
|
ATTRIBUTE_SET = AttributeSets::SvcExportReqs
|
|
1514
|
-
ATTRIBUTES =
|
|
1326
|
+
ATTRIBUTES = %i[requests].freeze
|
|
1327
|
+
include ATTRIBUTE_SET::Definitions
|
|
1328
|
+
def initialize(attributes = [])
|
|
1329
|
+
@attributes = attributes
|
|
1330
|
+
end
|
|
1331
|
+
# @private
|
|
1332
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1333
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1334
|
+
new(
|
|
1335
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1336
|
+
)
|
|
1337
|
+
end
|
|
1338
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1339
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1340
|
+
def self.decode(decoder)
|
|
1341
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1342
|
+
end
|
|
1343
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1344
|
+
encode_attributes(encoder, external_selectors:)
|
|
1345
|
+
end
|
|
1515
1346
|
# @rbs return: ::Array[AttributeSets::SvcExport]
|
|
1516
1347
|
# @return [Array<AttributeSets::SvcExport>]
|
|
1517
|
-
|
|
1518
|
-
def requests; attributes[:"requests"].map(&:value); end
|
|
1348
|
+
def requests; self[:"requests"]; end
|
|
1519
1349
|
end
|
|
1520
1350
|
# Respond to one or more svc_export requests
|
|
1521
1351
|
#
|
|
1522
1352
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1523
|
-
class DoSvcExportSetReqsRequest < ::Nl::
|
|
1353
|
+
class DoSvcExportSetReqsRequest < ::Nl::Message
|
|
1524
1354
|
TYPE = 12
|
|
1525
1355
|
FIXED_HEADER = nil
|
|
1526
1356
|
ATTRIBUTE_SET = AttributeSets::SvcExportReqs
|
|
1527
|
-
ATTRIBUTES =
|
|
1357
|
+
ATTRIBUTES = %i[requests].freeze
|
|
1358
|
+
include ATTRIBUTE_SET::Definitions
|
|
1359
|
+
def initialize(attributes = [])
|
|
1360
|
+
@attributes = attributes
|
|
1361
|
+
end
|
|
1362
|
+
# @private
|
|
1363
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1364
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1365
|
+
new(
|
|
1366
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1367
|
+
)
|
|
1368
|
+
end
|
|
1369
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1370
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1371
|
+
def self.decode(decoder)
|
|
1372
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1373
|
+
end
|
|
1374
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1375
|
+
encode_attributes(encoder, external_selectors:)
|
|
1376
|
+
end
|
|
1528
1377
|
# @rbs return: ::Array[AttributeSets::SvcExport]
|
|
1529
1378
|
# @return [Array<AttributeSets::SvcExport>]
|
|
1530
|
-
|
|
1531
|
-
def requests; attributes[:"requests"].map(&:value); end
|
|
1379
|
+
def requests; self[:"requests"]; end
|
|
1532
1380
|
end
|
|
1533
1381
|
# Dump all pending expkey requests
|
|
1534
1382
|
#
|
|
1535
1383
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1536
|
-
class DumpExpkeyGetReqsRequest < ::Nl::
|
|
1384
|
+
class DumpExpkeyGetReqsRequest < ::Nl::Message
|
|
1537
1385
|
TYPE = 13
|
|
1538
1386
|
FIXED_HEADER = nil
|
|
1539
1387
|
ATTRIBUTE_SET = AttributeSets::ExpkeyReqs
|
|
1540
|
-
ATTRIBUTES =
|
|
1388
|
+
ATTRIBUTES = %i[].freeze
|
|
1389
|
+
include ATTRIBUTE_SET::Definitions
|
|
1390
|
+
def initialize(attributes = [])
|
|
1391
|
+
@attributes = attributes
|
|
1392
|
+
end
|
|
1393
|
+
# @private
|
|
1394
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1395
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1396
|
+
new(
|
|
1397
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1398
|
+
)
|
|
1399
|
+
end
|
|
1400
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1401
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1402
|
+
def self.decode(decoder)
|
|
1403
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1404
|
+
end
|
|
1405
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1406
|
+
encode_attributes(encoder, external_selectors:)
|
|
1407
|
+
end
|
|
1541
1408
|
end
|
|
1542
1409
|
# Dump all pending expkey requests
|
|
1543
1410
|
#
|
|
1544
1411
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1545
|
-
class DumpExpkeyGetReqsReply < ::Nl::
|
|
1412
|
+
class DumpExpkeyGetReqsReply < ::Nl::Message
|
|
1546
1413
|
TYPE = 13
|
|
1547
1414
|
FIXED_HEADER = nil
|
|
1548
1415
|
ATTRIBUTE_SET = AttributeSets::ExpkeyReqs
|
|
1549
|
-
ATTRIBUTES =
|
|
1416
|
+
ATTRIBUTES = %i[requests].freeze
|
|
1417
|
+
include ATTRIBUTE_SET::Definitions
|
|
1418
|
+
def initialize(attributes = [])
|
|
1419
|
+
@attributes = attributes
|
|
1420
|
+
end
|
|
1421
|
+
# @private
|
|
1422
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1423
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1424
|
+
new(
|
|
1425
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1426
|
+
)
|
|
1427
|
+
end
|
|
1428
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1429
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1430
|
+
def self.decode(decoder)
|
|
1431
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1432
|
+
end
|
|
1433
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1434
|
+
encode_attributes(encoder, external_selectors:)
|
|
1435
|
+
end
|
|
1550
1436
|
# @rbs return: ::Array[AttributeSets::Expkey]
|
|
1551
1437
|
# @return [Array<AttributeSets::Expkey>]
|
|
1552
|
-
|
|
1553
|
-
def requests; attributes[:"requests"].map(&:value); end
|
|
1438
|
+
def requests; self[:"requests"]; end
|
|
1554
1439
|
end
|
|
1555
1440
|
# Respond to one or more expkey requests
|
|
1556
1441
|
#
|
|
1557
1442
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1558
|
-
class DoExpkeySetReqsRequest < ::Nl::
|
|
1443
|
+
class DoExpkeySetReqsRequest < ::Nl::Message
|
|
1559
1444
|
TYPE = 14
|
|
1560
1445
|
FIXED_HEADER = nil
|
|
1561
1446
|
ATTRIBUTE_SET = AttributeSets::ExpkeyReqs
|
|
1562
|
-
ATTRIBUTES =
|
|
1447
|
+
ATTRIBUTES = %i[requests].freeze
|
|
1448
|
+
include ATTRIBUTE_SET::Definitions
|
|
1449
|
+
def initialize(attributes = [])
|
|
1450
|
+
@attributes = attributes
|
|
1451
|
+
end
|
|
1452
|
+
# @private
|
|
1453
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1454
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1455
|
+
new(
|
|
1456
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1457
|
+
)
|
|
1458
|
+
end
|
|
1459
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1460
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1461
|
+
def self.decode(decoder)
|
|
1462
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1463
|
+
end
|
|
1464
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1465
|
+
encode_attributes(encoder, external_selectors:)
|
|
1466
|
+
end
|
|
1563
1467
|
# @rbs return: ::Array[AttributeSets::Expkey]
|
|
1564
1468
|
# @return [Array<AttributeSets::Expkey>]
|
|
1565
|
-
|
|
1566
|
-
def requests; attributes[:"requests"].map(&:value); end
|
|
1469
|
+
def requests; self[:"requests"]; end
|
|
1567
1470
|
end
|
|
1568
1471
|
# Flush nfsd caches (svc_export and/or expkey)
|
|
1569
1472
|
#
|
|
1570
1473
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1571
|
-
class DoCacheFlushRequest < ::Nl::
|
|
1474
|
+
class DoCacheFlushRequest < ::Nl::Message
|
|
1572
1475
|
TYPE = 15
|
|
1573
1476
|
FIXED_HEADER = nil
|
|
1574
1477
|
ATTRIBUTE_SET = AttributeSets::CacheFlush
|
|
1575
|
-
ATTRIBUTES =
|
|
1478
|
+
ATTRIBUTES = %i[mask].freeze
|
|
1479
|
+
include ATTRIBUTE_SET::Definitions
|
|
1480
|
+
def initialize(attributes = [])
|
|
1481
|
+
@attributes = attributes
|
|
1482
|
+
end
|
|
1483
|
+
# @private
|
|
1484
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1485
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1486
|
+
new(
|
|
1487
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1488
|
+
)
|
|
1489
|
+
end
|
|
1490
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1491
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1492
|
+
def self.decode(decoder)
|
|
1493
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1494
|
+
end
|
|
1495
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1496
|
+
encode_attributes(encoder, external_selectors:)
|
|
1497
|
+
end
|
|
1576
1498
|
# Known flags are defined in {Flags::CacheType}.
|
|
1577
1499
|
# @rbs return: ::Integer
|
|
1578
1500
|
# @return [Integer]
|
|
1579
|
-
|
|
1580
|
-
def mask; attributes[:"mask"]&.value; end
|
|
1501
|
+
def mask; self[:"mask"]; end
|
|
1581
1502
|
end
|
|
1582
1503
|
# release NLM locks held by an IP address
|
|
1583
1504
|
#
|
|
1584
1505
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1585
|
-
class DoUnlockIpRequest < ::Nl::
|
|
1506
|
+
class DoUnlockIpRequest < ::Nl::Message
|
|
1586
1507
|
TYPE = 16
|
|
1587
1508
|
FIXED_HEADER = nil
|
|
1588
1509
|
ATTRIBUTE_SET = AttributeSets::UnlockIp
|
|
1589
|
-
ATTRIBUTES =
|
|
1510
|
+
ATTRIBUTES = %i[address].freeze
|
|
1511
|
+
include ATTRIBUTE_SET::Definitions
|
|
1512
|
+
def initialize(attributes = [])
|
|
1513
|
+
@attributes = attributes
|
|
1514
|
+
end
|
|
1515
|
+
# @private
|
|
1516
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1517
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1518
|
+
new(
|
|
1519
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1520
|
+
)
|
|
1521
|
+
end
|
|
1522
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1523
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1524
|
+
def self.decode(decoder)
|
|
1525
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1526
|
+
end
|
|
1527
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1528
|
+
encode_attributes(encoder, external_selectors:)
|
|
1529
|
+
end
|
|
1590
1530
|
# struct sockaddr_in or struct sockaddr_in6.
|
|
1591
1531
|
# @rbs return: ::String
|
|
1592
1532
|
# @return [String]
|
|
1593
|
-
|
|
1594
|
-
def address; attributes[:"address"]&.value; end
|
|
1533
|
+
def address; self[:"address"]; end
|
|
1595
1534
|
end
|
|
1596
1535
|
# revoke NFS state under a filesystem path
|
|
1597
1536
|
#
|
|
1598
1537
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1599
|
-
class DoUnlockFilesystemRequest < ::Nl::
|
|
1538
|
+
class DoUnlockFilesystemRequest < ::Nl::Message
|
|
1600
1539
|
TYPE = 17
|
|
1601
1540
|
FIXED_HEADER = nil
|
|
1602
1541
|
ATTRIBUTE_SET = AttributeSets::UnlockFilesystem
|
|
1603
|
-
ATTRIBUTES =
|
|
1542
|
+
ATTRIBUTES = %i[path].freeze
|
|
1543
|
+
include ATTRIBUTE_SET::Definitions
|
|
1544
|
+
def initialize(attributes = [])
|
|
1545
|
+
@attributes = attributes
|
|
1546
|
+
end
|
|
1547
|
+
# @private
|
|
1548
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1549
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1550
|
+
new(
|
|
1551
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1552
|
+
)
|
|
1553
|
+
end
|
|
1554
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1555
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1556
|
+
def self.decode(decoder)
|
|
1557
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1558
|
+
end
|
|
1559
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1560
|
+
encode_attributes(encoder, external_selectors:)
|
|
1561
|
+
end
|
|
1604
1562
|
# Filesystem path whose state should be released.
|
|
1605
1563
|
# @rbs return: ::String
|
|
1606
1564
|
# @return [String]
|
|
1607
|
-
|
|
1608
|
-
def path; attributes[:"path"]&.value; end
|
|
1565
|
+
def path; self[:"path"]; end
|
|
1609
1566
|
end
|
|
1610
1567
|
# Revoke NFSv4 state acquired through exports of a given path. Unlike unlock-filesystem, which operates at superblock granularity, this command targets only state associated with a specific export path. Userspace (exportfs -u) sends this after removing the last client for a path so the underlying filesystem can be unmounted.
|
|
1611
1568
|
#
|
|
1612
1569
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1613
|
-
class DoUnlockExportRequest < ::Nl::
|
|
1570
|
+
class DoUnlockExportRequest < ::Nl::Message
|
|
1614
1571
|
TYPE = 18
|
|
1615
1572
|
FIXED_HEADER = nil
|
|
1616
1573
|
ATTRIBUTE_SET = AttributeSets::UnlockExport
|
|
1617
|
-
ATTRIBUTES =
|
|
1574
|
+
ATTRIBUTES = %i[path].freeze
|
|
1575
|
+
include ATTRIBUTE_SET::Definitions
|
|
1576
|
+
def initialize(attributes = [])
|
|
1577
|
+
@attributes = attributes
|
|
1578
|
+
end
|
|
1579
|
+
# @private
|
|
1580
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1581
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1582
|
+
new(
|
|
1583
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1584
|
+
)
|
|
1585
|
+
end
|
|
1586
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1587
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1588
|
+
def self.decode(decoder)
|
|
1589
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1590
|
+
end
|
|
1591
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1592
|
+
encode_attributes(encoder, external_selectors:)
|
|
1593
|
+
end
|
|
1618
1594
|
# Export path whose NFSv4 state should be revoked. All state (opens, locks, delegations, layouts) acquired through any export of this path is revoked, regardless of which client holds the state. Intended for use after all clients have been unexported from a given path, enabling the underlying filesystem to be unmounted.
|
|
1619
1595
|
# @rbs return: ::String
|
|
1620
1596
|
# @return [String]
|
|
1621
|
-
|
|
1622
|
-
|
|
1597
|
+
def path; self[:"path"]; end
|
|
1598
|
+
end
|
|
1599
|
+
# dump NFS server statistics
|
|
1600
|
+
class DumpServerStatsGetRequest < ::Nl::Message
|
|
1601
|
+
TYPE = 19
|
|
1602
|
+
FIXED_HEADER = nil
|
|
1603
|
+
ATTRIBUTE_SET = AttributeSets::ServerStats
|
|
1604
|
+
ATTRIBUTES = %i[].freeze
|
|
1605
|
+
include ATTRIBUTE_SET::Definitions
|
|
1606
|
+
def initialize(attributes = [])
|
|
1607
|
+
@attributes = attributes
|
|
1608
|
+
end
|
|
1609
|
+
# @private
|
|
1610
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1611
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1612
|
+
new(
|
|
1613
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1614
|
+
)
|
|
1615
|
+
end
|
|
1616
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1617
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1618
|
+
def self.decode(decoder)
|
|
1619
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1620
|
+
end
|
|
1621
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1622
|
+
encode_attributes(encoder, external_selectors:)
|
|
1623
|
+
end
|
|
1624
|
+
end
|
|
1625
|
+
# dump NFS server statistics
|
|
1626
|
+
class DumpServerStatsGetReply < ::Nl::Message
|
|
1627
|
+
TYPE = 19
|
|
1628
|
+
FIXED_HEADER = nil
|
|
1629
|
+
ATTRIBUTE_SET = AttributeSets::ServerStats
|
|
1630
|
+
ATTRIBUTES = %i[rc_hits rc_misses rc_nocache fh_stale io_read io_write netcnt netudpcnt nettcpcnt nettcpconn rpccnt rpcbadfmt rpcbadauth rpcbadclnt proc2_ops proc3_ops proc4_ops proc4ops_ops proc4cb_ops].freeze
|
|
1631
|
+
include ATTRIBUTE_SET::Definitions
|
|
1632
|
+
def initialize(attributes = [])
|
|
1633
|
+
@attributes = attributes
|
|
1634
|
+
end
|
|
1635
|
+
# @private
|
|
1636
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1637
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1638
|
+
new(
|
|
1639
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1640
|
+
)
|
|
1641
|
+
end
|
|
1642
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1643
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1644
|
+
def self.decode(decoder)
|
|
1645
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1646
|
+
end
|
|
1647
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1648
|
+
encode_attributes(encoder, external_selectors:)
|
|
1649
|
+
end
|
|
1650
|
+
# @rbs return: ::Integer
|
|
1651
|
+
# @return [Integer]
|
|
1652
|
+
def rc_hits; self[:"rc_hits"]; end
|
|
1653
|
+
# @rbs return: ::Integer
|
|
1654
|
+
# @return [Integer]
|
|
1655
|
+
def rc_misses; self[:"rc_misses"]; end
|
|
1656
|
+
# @rbs return: ::Integer
|
|
1657
|
+
# @return [Integer]
|
|
1658
|
+
def rc_nocache; self[:"rc_nocache"]; end
|
|
1659
|
+
# @rbs return: ::Integer
|
|
1660
|
+
# @return [Integer]
|
|
1661
|
+
def fh_stale; self[:"fh_stale"]; end
|
|
1662
|
+
# @rbs return: ::Integer
|
|
1663
|
+
# @return [Integer]
|
|
1664
|
+
def io_read; self[:"io_read"]; end
|
|
1665
|
+
# @rbs return: ::Integer
|
|
1666
|
+
# @return [Integer]
|
|
1667
|
+
def io_write; self[:"io_write"]; end
|
|
1668
|
+
# @rbs return: ::Integer
|
|
1669
|
+
# @return [Integer]
|
|
1670
|
+
def netcnt; self[:"netcnt"]; end
|
|
1671
|
+
# @rbs return: ::Integer
|
|
1672
|
+
# @return [Integer]
|
|
1673
|
+
def netudpcnt; self[:"netudpcnt"]; end
|
|
1674
|
+
# @rbs return: ::Integer
|
|
1675
|
+
# @return [Integer]
|
|
1676
|
+
def nettcpcnt; self[:"nettcpcnt"]; end
|
|
1677
|
+
# @rbs return: ::Integer
|
|
1678
|
+
# @return [Integer]
|
|
1679
|
+
def nettcpconn; self[:"nettcpconn"]; end
|
|
1680
|
+
# @rbs return: ::Integer
|
|
1681
|
+
# @return [Integer]
|
|
1682
|
+
def rpccnt; self[:"rpccnt"]; end
|
|
1683
|
+
# @rbs return: ::Integer
|
|
1684
|
+
# @return [Integer]
|
|
1685
|
+
def rpcbadfmt; self[:"rpcbadfmt"]; end
|
|
1686
|
+
# @rbs return: ::Integer
|
|
1687
|
+
# @return [Integer]
|
|
1688
|
+
def rpcbadauth; self[:"rpcbadauth"]; end
|
|
1689
|
+
# @rbs return: ::Integer
|
|
1690
|
+
# @return [Integer]
|
|
1691
|
+
def rpcbadclnt; self[:"rpcbadclnt"]; end
|
|
1692
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
1693
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
1694
|
+
def proc2_ops; self[:"proc2_ops"]; end
|
|
1695
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
1696
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
1697
|
+
def proc3_ops; self[:"proc3_ops"]; end
|
|
1698
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
1699
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
1700
|
+
def proc4_ops; self[:"proc4_ops"]; end
|
|
1701
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
1702
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
1703
|
+
def proc4ops_ops; self[:"proc4ops_ops"]; end
|
|
1704
|
+
# @rbs return: ::Array[AttributeSets::ServerProcEntry]
|
|
1705
|
+
# @return [Array<AttributeSets::ServerProcEntry>]
|
|
1706
|
+
def proc4cb_ops; self[:"proc4cb_ops"]; end
|
|
1623
1707
|
end
|
|
1624
1708
|
end
|
|
1625
1709
|
module Notifications
|
|
1626
1710
|
# Notification that there are cache requests that need servicing
|
|
1627
1711
|
#
|
|
1628
1712
|
# Multicast group: `exportd`.
|
|
1629
|
-
class CacheNotify < ::Nl::
|
|
1713
|
+
class CacheNotify < ::Nl::Message
|
|
1630
1714
|
TYPE = 10
|
|
1631
1715
|
FIXED_HEADER = nil
|
|
1632
1716
|
ATTRIBUTE_SET = AttributeSets::CacheNotify
|
|
1633
|
-
ATTRIBUTES =
|
|
1717
|
+
ATTRIBUTES = %i[cache_type].freeze
|
|
1718
|
+
include ATTRIBUTE_SET::Definitions
|
|
1719
|
+
def initialize(attributes = [])
|
|
1720
|
+
@attributes = attributes
|
|
1721
|
+
end
|
|
1722
|
+
# @private
|
|
1723
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1724
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
1725
|
+
new(
|
|
1726
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
1727
|
+
)
|
|
1728
|
+
end
|
|
1729
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1730
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1731
|
+
def self.decode(decoder)
|
|
1732
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
1733
|
+
end
|
|
1734
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
1735
|
+
encode_attributes(encoder, external_selectors:)
|
|
1736
|
+
end
|
|
1634
1737
|
# Known flags are defined in {Flags::CacheType}.
|
|
1635
1738
|
# @rbs return: ::Integer
|
|
1636
1739
|
# @return [Integer]
|
|
1637
|
-
|
|
1638
|
-
def cache_type; attributes[:"cache_type"]&.value; end
|
|
1740
|
+
def cache_type; self[:"cache_type"]; end
|
|
1639
1741
|
end
|
|
1640
1742
|
end
|
|
1641
1743
|
# @private
|
|
1642
|
-
NOTIFICATIONS =
|
|
1744
|
+
NOTIFICATIONS = {10 => Notifications::CacheNotify}.freeze #: Hash[::Integer, ::Class]
|
|
1643
1745
|
# dump pending nfsd rpc
|
|
1644
1746
|
# @rbs () -> Array[Messages::DumpRpcStatusGetReply]
|
|
1645
1747
|
# | () { (Messages::DumpRpcStatusGetReply) -> void } -> void
|
|
@@ -1839,6 +1941,22 @@ class Nfsd < ::Nl::Genl::Family
|
|
|
1839
1941
|
def do_unlock_export(**args)
|
|
1840
1942
|
exchange_message(:"do", Messages::DoUnlockExportRequest, nil, args)
|
|
1841
1943
|
end
|
|
1944
|
+
# dump NFS server statistics
|
|
1945
|
+
# @rbs () -> Array[Messages::DumpServerStatsGetReply]
|
|
1946
|
+
# | () { (Messages::DumpServerStatsGetReply) -> void } -> void
|
|
1947
|
+
# @overload dump_server_stats_get(**args)
|
|
1948
|
+
# Returns an array when no block is given.
|
|
1949
|
+
# @param [Hash] args
|
|
1950
|
+
# @return [Array<Messages::DumpServerStatsGetReply>]
|
|
1951
|
+
# @overload dump_server_stats_get(**args, &block)
|
|
1952
|
+
# Yields each reply when a block is given.
|
|
1953
|
+
# @param [Hash] args
|
|
1954
|
+
# @yieldparam [Messages::DumpServerStatsGetReply] reply
|
|
1955
|
+
# @return [void]
|
|
1956
|
+
# @see Messages::DumpServerStatsGetRequest
|
|
1957
|
+
def dump_server_stats_get(**args, &block)
|
|
1958
|
+
exchange_message(:"dump", Messages::DumpServerStatsGetRequest, Messages::DumpServerStatsGetReply, args, &block)
|
|
1959
|
+
end
|
|
1842
1960
|
class AsyncOperations
|
|
1843
1961
|
# @private
|
|
1844
1962
|
def initialize(&exchange)
|
|
@@ -2019,6 +2137,14 @@ class Nfsd < ::Nl::Genl::Family
|
|
|
2019
2137
|
def do_unlock_export(**args)
|
|
2020
2138
|
@exchange.call(:"do", Messages::DoUnlockExportRequest, nil, args)
|
|
2021
2139
|
end
|
|
2140
|
+
# dump NFS server statistics
|
|
2141
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpServerStatsGetReply]
|
|
2142
|
+
# @param [Hash] args
|
|
2143
|
+
# @return [Nl::Async::Stream<Messages::DumpServerStatsGetReply>]
|
|
2144
|
+
# @see Messages::DumpServerStatsGetRequest
|
|
2145
|
+
def dump_server_stats_get(**args)
|
|
2146
|
+
@exchange.call(:"dump", Messages::DumpServerStatsGetRequest, Messages::DumpServerStatsGetReply, args)
|
|
2147
|
+
end
|
|
2022
2148
|
end
|
|
2023
2149
|
# Returns the asynchronous operation facade for this family.
|
|
2024
2150
|
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|