block: keep bitmap if incremental backup job is cancelled
commit17d9716d7b5381c4b6566bb1a06267d2bfcd1821
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 15 Jun 2015 15:02:14 +0000 (15 16:02 +0100)
committerJeff Cody <jcody@redhat.com>
Wed, 15 Jul 2015 01:50:13 +0000 (14 21:50 -0400)
tree5eca218b14617105c43630c417f5e5a519407a58
parent299bf097375f9d148cda579ad85477304e38856b
block: keep bitmap if incremental backup job is cancelled

Reclaim the dirty bitmap if an incremental backup block job is
cancelled.  The ret variable may be 0 when the job is cancelled so it's
not enough to check ret < 0.

Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1434380534-7680-1-git-send-email-stefanha@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/backup.c