File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,12 @@ impl<'a> Persist<'a> for MMIODeviceManager {
239
239
240
240
// Send Transport event to reset connections if device
241
241
// is activated.
242
- if vsock. is_activated ( ) {
242
+ // TODO: temporarily disabled to avoid FC agent becoming unavailable when restoring snapshots
243
+ /*if vsock.is_activated() {
243
244
vsock.send_transport_reset_event().unwrap_or_else(|e| {
244
245
error!("Failed to send reset transport event: {:?}", e);
245
246
});
246
- }
247
+ }*/
247
248
248
249
states. vsock_device = Some ( ConnectedVsockState {
249
250
device_id : devid. clone ( ) ,
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ pub fn restore_from_snapshot(
425
425
if ! new_snapshot_path. eq ( "" ) {
426
426
let n = microvm_state. device_states . block_devices . len ( ) ;
427
427
for i in 0 ..n {
428
- if microvm_state. device_states . block_devices [ i] . device_state . disk_path . contains ( "fc-dev- thinpool-" ) {
428
+ if microvm_state. device_states . block_devices [ i] . device_state . disk_path . contains ( "thinpool-snap " ) {
429
429
microvm_state. device_states . block_devices [ i] . device_state . disk_path = new_snapshot_path. clone ( ) ;
430
430
}
431
431
}
You can’t perform that action at this time.
0 commit comments