ceph-csi/internal
Rakshith R 6f802589aa rbd: add one depth for softlimit of snapshot for restore PVC
Currently, while preparing a volume for snapshot,
the depthToAvoidFlatten is set to 2. This accounts one
for snapshot and another since parent of the volume is
flattened.
This commit modifies the depth to 3 to also account for
future PVC restore since
- snapshot alone is useless and it is very likely to be restore
  at one point in time.
- this ensures snapshot is not flattened when restore does occur.
- flattening of snapshot in the above case will make the snapshot
  no longer eligible for changed block tracking(snap diff)
  operation.
- maintain similarity with PVC-PVC clone operation which currently
  depthToAvoidFlatten set to 1.

Signed-off-by: Rakshith R <rar@redhat.com>
2025-03-14 15:12:27 +00:00
..
cephfs util: do not use mount-utils.IsLikelyNotMountPoint anymore 2025-03-14 10:27:13 +00:00
controller rbd: controller to regenerate volume group omap data 2025-01-28 17:19:32 +00:00
csi-addons cleanup: move ErrImageNotFound from rbd/errors to util/errors 2025-02-17 13:33:21 +00:00
csi-common util: do not use mount-utils.IsLikelyNotMountPoint anymore 2025-03-14 10:27:13 +00:00
health-checker doc: fix codespell problem 2024-09-04 10:13:47 +00:00
journal util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
kms rbd: fix encrypted PVC with metadata KMS cannot be deleted 2025-02-25 13:51:42 +00:00
liveness ci: non-constant format string (govet) 2025-01-08 11:56:24 +00:00
nfs util: do not use mount-utils.IsLikelyNotMountPoint anymore 2025-03-14 10:27:13 +00:00
rbd rbd: add one depth for softlimit of snapshot for restore PVC 2025-03-14 15:12:27 +00:00
util util: do not use mount-utils.IsLikelyNotMountPoint anymore 2025-03-14 10:27:13 +00:00