rbd: add RBD_IMAGE_OPTION_FLATTEN for Mimic

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-08 10:21:30 +02:00 committed by John Mulligan
parent b76c077b3c
commit ba93f46cb4
2 changed files with 12 additions and 3 deletions

View File

@ -69,9 +69,6 @@ const (
RbdImageOptionFeaturesClear = ImageOptionFeaturesClear
// RbdImageOptionDataPool deprecated alias for ImageOptionDataPool
RbdImageOptionDataPool = ImageOptionDataPool
// introduced with Ceph Mimic
//RbdImageOptionFlatten = C.RBD_IMAGE_OPTION_FLATTEN
)
// ImageOptions represents a group of configurable image options.

12
rbd/options_mimic.go Normal file
View File

@ -0,0 +1,12 @@
// +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
)