[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 07/25] migration: Always report an error in block_save_set
From: |
Peter Xu |
Subject: |
Re: [PATCH v4 07/25] migration: Always report an error in block_save_setup() |
Date: |
Fri, 8 Mar 2024 14:59:57 +0800 |
On Wed, Mar 06, 2024 at 02:34:22PM +0100, Cédric Le Goater wrote:
> @@ -404,6 +403,10 @@ static int init_blk_migration(QEMUFile *f)
> sectors = bdrv_nb_sectors(bs);
> if (sectors <= 0) {
Not directly relevant to this patch, but just to mention that this looks
suspicious (even if I know nothing about block migration..) - I am not sure
whether any block drive would return 0 here, if so it looks still like a
problem if we do the cleanup, ignoring the rest and return a success.
> ret = sectors;
> + if (ret < 0) {
> + error_setg(errp, "Error getting length of block device %s",
> + bdrv_get_device_name(bs));
> + }
> bdrv_next_cleanup(&it);
> goto out;
> }
--
Peter Xu
- [PATCH v4 02/25] migration: Remove SaveStateHandler and LoadStateHandler typedefs, (continued)
- [PATCH v4 02/25] migration: Remove SaveStateHandler and LoadStateHandler typedefs, Cédric Le Goater, 2024/03/06
- [PATCH v4 01/25] migration: Report error when shutdown fails, Cédric Le Goater, 2024/03/06
- [PATCH v4 03/25] migration: Add documentation for SaveVMHandlers, Cédric Le Goater, 2024/03/06
- [PATCH v4 04/25] migration: Do not call PRECOPY_NOTIFY_SETUP notifiers in case of error, Cédric Le Goater, 2024/03/06
- [PATCH v4 05/25] s390/stattrib: Add Error** argument to set_migrationmode() handler, Cédric Le Goater, 2024/03/06
- [PATCH v4 07/25] migration: Always report an error in block_save_setup(), Cédric Le Goater, 2024/03/06
- [PATCH v4 09/25] migration: Add Error** argument to vmstate_save(), Cédric Le Goater, 2024/03/06
- [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Cédric Le Goater, 2024/03/06
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Fabiano Rosas, 2024/03/07
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Peter Xu, 2024/03/08
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Cédric Le Goater, 2024/03/08
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Cédric Le Goater, 2024/03/08
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Cédric Le Goater, 2024/03/08
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Peter Xu, 2024/03/08
- Re: [PATCH v4 10/25] migration: Add Error** argument to qemu_savevm_state_setup(), Cédric Le Goater, 2024/03/11