rbd: remove options_mimic.go moving content to options.go

go-ceph stopped supporting mimic in v0.7.0. Keeping the constants
that were added in mimic in a standalone file is no longer needed.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-19 14:40:07 -04:00 committed by mergify[bot]
parent b201e01628
commit 29a94e03b5
2 changed files with 6 additions and 16 deletions

View File

@ -46,6 +46,12 @@ const (
// ImageOptionDataPool is the representation of RBD_IMAGE_OPTION_DATA_POOL // ImageOptionDataPool is the representation of RBD_IMAGE_OPTION_DATA_POOL
// from librbd // from librbd
ImageOptionDataPool = C.RBD_IMAGE_OPTION_DATA_POOL ImageOptionDataPool = C.RBD_IMAGE_OPTION_DATA_POOL
// ImageOptionFlatten is the representation of RBD_IMAGE_OPTION_FLATTEN
// from librbd
ImageOptionFlatten = C.RBD_IMAGE_OPTION_FLATTEN
// ImageOptionCloneFormat is the representation of
// RBD_IMAGE_OPTION_CLONE_FORMAT from librbd
ImageOptionCloneFormat = C.RBD_IMAGE_OPTION_CLONE_FORMAT
// RbdImageOptionFormat deprecated alias for ImageOptionFormat // RbdImageOptionFormat deprecated alias for ImageOptionFormat
RbdImageOptionFormat = ImageOptionFormat RbdImageOptionFormat = ImageOptionFormat

View File

@ -1,16 +0,0 @@
// +build !luminous
package rbd
// #include <rbd/librbd.h>
import "C"
const (
// ImageOptionFlatten is the representation of RBD_IMAGE_OPTION_FLATTEN
// from librbd
ImageOptionFlatten = C.RBD_IMAGE_OPTION_FLATTEN
// ImageOptionCloneFormat is the representation of
// RBD_IMAGE_OPTION_CLONE_FORMAT from librbd
ImageOptionCloneFormat = C.RBD_IMAGE_OPTION_CLONE_FORMAT
)