Commit Graph

8 Commits

Author SHA1 Message Date
Ilya Dryomov
df352fd90b rbd: fix cleanup of GroupSnapRollback and Sparsify progress callbacks
Instead of removing a respective progress callback, DiffIterate extent
callback is attempted to be removed.  This leaks the progress callback
and on top of that it's quite possible for DiffIterate to be disrupted
as cbIndex is not a unique pointer but just an integer ID.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2025-01-29 18:43:09 +00:00
Niels de Vos
3dbd875587 rbd: replace rbdError by cephError
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-10-14 17:49:08 +00:00
Niels de Vos
b3b70bc6da rbd: implement librbd.rbd_group_snap_get_info
The new GroupSnapGetInfo function can be used to get a list of the RBD
image snapshots that were created as part of the RBD group snapshot.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-10-09 17:39:49 +00:00
Sven Anderson
87041ee7d8 gofmt: reformat everything with new gofmt of go 1.19
Signed-off-by: Sven Anderson <sven@redhat.com>
2023-02-20 20:50:24 +00:00
John Mulligan
1286e0d4d0 rbd: add GroupSnapRollbackWithProgress function
* Add GroupSnapRollbackWithProgress implementing rbd_group_snap_rollback_with_progress

This has supporting code basically the same as our other existing
callback functions.
Tests too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-02-08 15:29:11 +00:00
John Mulligan
8e6dfe4259 rbd: add GroupSnapRollback implementing rbd_group_snap_rollback
* Add GroupSnapRollback implementing rbd_group_snap_rollback

Adds tests for the above.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-02-08 15:29:11 +00:00
John Mulligan
ffeabf1436 rbd: add GroupSnapList implementing rbd_group_snap_list
* Add GroupSnapList implementing rbd_group_snap_list

Adds tests for the above.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-02-08 15:29:11 +00:00
John Mulligan
fd08e791cc rbd: add GroupSnapCreate, GroupSnapRemove, & GroupSnapRename funcs
* Add GroupSnapCreate implementing rbd_group_snap_create
* Add GroupSnapRemove implementing rbd_group_snap_remove
* Add GroupSnapRename implementing rbd_group_snap_rename

And tests for the above.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-02-08 15:29:11 +00:00