drbd: Create the protocol feature THIN_RESYNC
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 13 Jun 2016 22:26:15 +0000 (00:26 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Jun 2016 03:43:04 +0000 (21:43 -0600)
commit92d94ae66aebda5e4832d96e96b95117c44693b5
tree08266c08a393aa5ca014d38d9813f61f74f5ae81
parenta5ca66c419410b4a26ab47b120d5424bd1d33700
drbd: Create the protocol feature THIN_RESYNC

If thinly provisioned volumes are used, during a resync the sync source
tries to find out if a block is deallocated. If it is deallocated, then
the resync target uses block_dev_issue_zeroout() on the range in
question.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_protocol.h
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c