ceph-csi/internal
Rakshith R a56f9a0c05 rbd: flatten datasource image before creating volume
This commit ensures that parent image is flattened before
creating volume.
- If the data source is a PVC, the underlying image's parent
  is flattened(which would be a temp clone or snapshot).
  hard & soft limit is reduced by 2 to account for depth that
  will be added by temp & final clone.

- If the data source is a Snapshot, the underlying image is
  itself flattened.
  hard & soft limit is reduced by 1 to account for depth that
  will be added by the clone which will be restored from the
  snapshot.

Flattening step for resulting PVC image restored from snapshot is removed.
Flattening step for temp clone & final image is removed when pvc clone is
being created.

Fixes: #2190

Signed-off-by: Rakshith R <rar@redhat.com>
2022-03-18 10:27:27 +00:00
..
cephfs cephfs: disallow creating small volumes from snapshot/volume 2022-03-17 05:07:26 +00:00
controller rbd: remove retrieving volumeHandle from PV annotation 2021-12-17 03:38:29 +00:00
csi-addons rbd: return unimplemented error for block-mode reclaimspace req 2022-03-03 19:00:49 +00:00
csi-common rbd: remove unimplemented responses for node operations 2022-03-16 15:27:48 +00:00
journal cleanup: remove unwanted type declaration 2022-01-24 05:25:11 +00:00
kms rbd: add aws-sts-metdata encryption type 2022-03-16 07:29:56 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
rbd rbd: flatten datasource image before creating volume 2022-03-18 10:27:27 +00:00
util cephfs: detect corrupt ceph-fuse mounts and try to remount 2022-03-10 06:05:52 +00:00