ceph-csi/internal/rbd
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
..
driver csiaddons: use rbd.Manager within ReclaimSpaceControllerServer 2025-01-28 10:19:58 +00:00
features rbd: add feature check to see if GroupSnapGetInfo is available 2024-10-10 15:45:47 +00:00
group rbd: get volumegroup in secondary cluster 2025-02-17 13:33:21 +00:00
types rbd: add RegenerateVolumeGroupJournal method for Manager interface 2025-01-28 17:19:32 +00:00
clone.go rbd: use ListChildrenAttributes() instead of ListChildren() 2025-03-12 08:51:02 +00:00
controllerserver_test.go rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-20 10:14:29 +00:00
controllerserver.go rbd: use ListChildrenAttributes() instead of ListChildren() 2025-03-12 08:51:02 +00:00
diskusage.go csiaddons: use rbd.Manager within ReclaimSpaceControllerServer 2025-01-28 10:19:58 +00:00
encryption_test.go util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
encryption.go util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
errors.go cleanup: move ErrImageNotFound from rbd/errors to util/errors 2025-02-17 13:33:21 +00:00
globals.go util: add CSIDriver.GetInstanceID() 2024-08-05 17:04:52 +00:00
group_controllerserver.go util: return correct status code for VolumeGroupSnapshot 2024-12-19 10:42:01 +00:00
group.go rbd: close the RBD-image after adding it to a VolumeGroup 2024-11-06 11:37:44 +00:00
identityserver.go rbd: expose the GroupControllerService 2024-11-06 11:37:44 +00:00
manager.go cleanup: move ErrImageNotFound from rbd/errors to util/errors 2025-02-17 13:33:21 +00:00
migration_test.go build: address 'copyloopvar' linter warning 2024-04-29 14:36:48 +00:00
migration.go rbd: rename deleteImage() to Delete() 2024-07-08 09:23:58 +00:00
mirror.go rbd: add context to mirror interface 2024-07-31 12:16:42 +00:00
nodeserver_test.go ci: Use temporary directory for unit tests 2024-05-27 05:57:27 +00:00
nodeserver.go rbd: cleanup NodeServer.createTargetMountPath() 2025-03-14 10:27:13 +00:00
qos_test.go rbd: support QoS based on capacity for rbd volume 2025-02-17 18:25:33 +00:00
qos.go rbd: support QoS based on capacity for rbd volume 2025-02-17 18:25:33 +00:00
rbd_attach_test.go build: address 'copyloopvar' linter warning 2024-04-29 14:36:48 +00:00
rbd_attach.go util: move kernel version functions to pkg/util/kernel 2025-03-07 16:05:04 +00:00
rbd_healer.go rbd: add a check for CSI pv 2024-08-27 17:08:44 +00:00
rbd_journal.go util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
rbd_util_test.go cleanup: move ShouldRetryVolumeGeneration from internal/rbd to internal/util 2025-02-17 13:33:21 +00:00
rbd_util.go rbd: add one depth for softlimit of snapshot for restore PVC 2025-03-14 15:12:27 +00:00
replication.go rbd: fail DisableVolumeReplication() if image is not mirror disabled 2024-09-11 16:22:29 +00:00
snapshot_test.go rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-20 10:14:29 +00:00
snapshot.go rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-20 10:14:29 +00:00