openebs-archive / libcstor

CAS Data Engine - Library to serve IOs on uZFS with synchronous replication, snapshots and clones
https://www.openebs.io
Apache License 2.0
18 stars 27 forks source link

feat(resize): resize the volume based on status #25

Closed mittachaitu closed 5 years ago

mittachaitu commented 5 years ago

Signed-off-by: mittachaitu sai.chaithanya@mayadata.io

This PR resizes the volume based on status of zvol. When target sends resize command

  1. If replica is in healthy status then main volume will resizes to updated size
  2. If replica is in degraded state then clone volume will resizes to updated size
  3. If replica is in AFS mode then clone and volume will resizes to updated size Manual testing is done

TODO:

  1. Unit test will be covered on different PR after #https://github.com/openebs/cstor/pull/267 checked in.