rbd: add support for RBD_FEATURE_OPERATIONS in Mimic

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-02-18 14:40:31 +01:00 committed by John Mulligan
parent 897c4b8683
commit 368ed4d838

16
rbd/features_mimic.go Normal file
View File

@ -0,0 +1,16 @@
// +build !luminous
package rbd
// #include <rbd/librbd.h>
import "C"
const (
// FeatureOperations is the representation of RBD_FEATURE_OPERATIONS
// from librbd
FeatureOperations = uint64(C.RBD_FEATURE_OPERATIONS)
// FeatureNameOperations is the representation of
// RBD_FEATURE_NAME_OPERATIONS from librbd
FeatureNameOperations = C.RBD_FEATURE_NAME_OPERATIONS
)