Skip to content

Commit 0ca53bf

Browse files
committed
compilation fixes
1 parent 61798a5 commit 0ca53bf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/vmm/src/device_manager/pci_mngr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ impl<'a> Persist<'a> for PciDevices {
311311
snapshotting yet"
312312
);
313313
} else {
314-
block_dev.prepare_save()?;
314+
if let Err(err) = block_dev.prepare_save() {
315+
warn!("Failed to prepare block device for save: {:?}", err);
316+
}
315317
let device_state = block_dev.save();
316318
state.block_devices.push(VirtioDeviceState {
317319
device_id: block_dev.id().to_string(),

src/vmm/src/device_manager/persist.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ impl<'a> Persist<'a> for MMIODeviceManager {
265265
snapshotting yet"
266266
);
267267
} else {
268-
block.prepare_save()?;
268+
if let Err(err) = block.prepare_save() {
269+
warn!("Failed to prepare block device for save: {:?}", err);
270+
}
269271
let device_state = block.save();
270272
states.block_devices.push(VirtioDeviceState {
271273
device_id,

0 commit comments

Comments
 (0)