OSDN Git Service

nbd: implement bdrv_get_info callback
authorEdgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
Thu, 18 Jan 2018 11:51:58 +0000 (14:51 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jan 2018 15:58:46 +0000 (09:58 -0600)
commit9776f0db6a19a0510e89b7aae38190b4811c95ba
treed8985aba7aa14f1c066f8e75b1d479cf833edacd
parent08fb10a7292637eb5836b8ac07b7ef8267db03be
nbd: implement bdrv_get_info callback

Since mirror job supports efficient zero out target mechanism (see
in mirror_dirty_init()), implement bdrv_get_info to make it work
over NBD. Such improvement will allow using the largest chunk possible
and will decrease the number of NBD_CMD_WRITE_ZEROES requests on the wire.

Signed-off-by: Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
Message-Id: <20180118115158.17219-1-edgar.kaziakhmedov@virtuozzo.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c