block/backup: deal with zero detection
commit319bd5edb92addc725b2701d73381c415146c287
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 30 Jul 2019 16:32:49 +0000 (30 19:32 +0300)
committerJohn Snow <jsnow@redhat.com>
Fri, 16 Aug 2019 22:29:43 +0000 (16 18:29 -0400)
tree386c8c029f130a3fb727ac990a7156caa48b9e2b
parent590a63d5983c9cdf2e1bf96a519532949963085d
block/backup: deal with zero detection

We have detect_zeroes option, so at least for blockdev-backup user
should define it if zero-detection is needed. For drive-backup leave
detection enabled by default but do it through existing option instead
of open-coding.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190730163251.755248-2-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
block/backup.c
blockdev.c