[Devel] [PATCH rh7 0/2] ploop: push_backup: preserve CBT mask

Maxim Patlasov mpatlasov at virtuozzo.com
Tue May 24 17:49:39 PDT 2016


The first patch of the set implements a helper to merge a copy of
CBT mask back to CBT: blk_cbt_map_merge().

The second patch implements the following logic: keep a copy of
CBT mask until either userspace reports success/failure of
push_backup or ploop is released ultimately.

If user reports success, free the copy. In all other cases,
the copy is merged back to CBT. This will allow re-do
push_backup if backup tool crashes in the middle.

https://jira.sw.ru/browse/PSBM-47429

---

Maxim Patlasov (2):
      cbt: new api: blk_cbt_map_merge()
      ploop: push_backup: merge pbd->cbt_map back to CBT


 block/blk-cbt.c                   |   67 +++++++++++++++++++++++++++++++++++++
 drivers/block/ploop/dev.c         |    4 +-
 drivers/block/ploop/push_backup.c |   34 ++++++++++++++++---
 drivers/block/ploop/push_backup.h |    2 +
 include/linux/blkdev.h            |    3 ++
 5 files changed, 102 insertions(+), 8 deletions(-)

--
Signature


More information about the Devel mailing list