rbd: improve doc comment style for clone

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2019-12-16 13:20:58 -05:00 committed by Niels de Vos
parent b7ea6aafaf
commit f8cbe766a3
1 changed files with 4 additions and 1 deletions

View File

@ -357,7 +357,10 @@ func Create4(ioctx *rados.IOContext, name string, size uint64, rio *RbdImageOpti
}, nil
}
// int rbd_clone(rados_ioctx_t p_ioctx, const char *p_name,
// Clone a new rbd image from a snapshot.
//
// Implements:
// int rbd_clone(rados_ioctx_t p_ioctx, const char *p_name,
// const char *p_snapname, rados_ioctx_t c_ioctx,
// const char *c_name, uint64_t features, int *c_order);
func (image *Image) Clone(snapname string, c_ioctx *rados.IOContext, c_name string, features uint64, order int) (*Image, error) {