File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/vmm/src/device_manager Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments