@@ -52,10 +52,13 @@ pub enum InstallinatorComponent {
52
52
/// The control plane component.
53
53
ControlPlane ,
54
54
55
- /// A component that means "both the host and the control plane", used for
56
- /// writes for now. It is possible that this component will go away in the
57
- /// future.
58
- Both ,
55
+ /// The measurement corpus component
56
+ MeasurementCorpus ,
57
+
58
+ /// A component that means "all possible components (host phase 2, control
59
+ /// plane, and measurements)", used for writes for now. It is possible
60
+ /// that this component will go away in the future.
61
+ All ,
59
62
60
63
/// Future variants that might be unknown.
61
64
#[ serde( other, deserialize_with = "deserialize_ignore_any" ) ]
@@ -194,6 +197,9 @@ pub enum WriteComponent {
194
197
/// The control plane component.
195
198
ControlPlane ,
196
199
200
+ /// The measurement corpus
201
+ MeasurementCorpus ,
202
+
197
203
/// Future variants that might be unknown.
198
204
#[ serde( other, deserialize_with = "deserialize_ignore_any" ) ]
199
205
Unknown ,
@@ -205,6 +211,7 @@ impl fmt::Display for WriteComponent {
205
211
Self :: HostPhase2 => f. write_str ( "host phase 2" ) ,
206
212
Self :: ControlPlane => f. write_str ( "control plane" ) ,
207
213
Self :: Unknown => f. write_str ( "unknown" ) ,
214
+ Self :: MeasurementCorpus => f. write_str ( "measurement corpus" ) ,
208
215
}
209
216
}
210
217
}
@@ -254,6 +261,8 @@ pub enum WriteError {
254
261
#[ source]
255
262
error : Box < NestedEngineError < ControlPlaneZonesSpec > > ,
256
263
} ,
264
+ #[ error( "error creating directory: {error}" ) ]
265
+ CreateDirError { error : std:: io:: Error } ,
257
266
}
258
267
259
268
impl From < NestedEngineError < ControlPlaneZonesSpec > > for WriteError {
@@ -303,6 +312,12 @@ pub enum ControlPlaneZonesStepId {
303
312
/// Writing the zone manifest.
304
313
ZoneManifest ,
305
314
315
+ /// Writing the measurement corpus.
316
+ Measurement { name : String } ,
317
+
318
+ /// Ensure the measurement directory exists
319
+ CreateMeasurementDir ,
320
+
306
321
/// Syncing writes to disk.
307
322
Fsync ,
308
323
0 commit comments