Avoid divide by zero when there is no block device to migrate
When block migration is requested and no read-write block device is present, a divide by zero exception is triggered because total_sector_sum equals zero. Signed-off-by: NPierre Riteau <Pierre.Riteau@irisa.fr> Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Showing
想要评论请 注册 或 登录