From 53fd07425afb84aa9e961fe448a218d0493a274b Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 25 Feb 2020 14:46:24 -0500 Subject: [PATCH] rbd: add doc comment for GetSnapshotNames function This function also happens to be mis-named. Signed-off-by: John Mulligan --- rbd/rbd.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 030928c..0780b03 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -878,8 +878,11 @@ func (image *Image) Flush() error { return getError(C.rbd_flush(image.image)) } -// int rbd_snap_list(rbd_image_t image, rbd_snap_info_t *snaps, int *max_snaps); -// void rbd_snap_list_end(rbd_snap_info_t *snaps); +// GetSnapshotNames returns more than just the names of snapshots +// associated with the rbd image. +// +// Implements: +// int rbd_snap_list(rbd_image_t image, rbd_snap_info_t *snaps, int *max_snaps); func (image *Image) GetSnapshotNames() (snaps []SnapInfo, err error) { if err := image.validate(imageIsOpen); err != nil { return nil, err