mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 16:30:19 +00:00
772d1dfa77
v0.3.0 adds support for rbd.FeatureSet that can be used to parse the features of an RBD image. This will be used in the followup commit that adds rbdVolume.getImageInfo(). Signed-off-by: Niels de Vos <ndevos@redhat.com>
21 lines
452 B
Go
21 lines
452 B
Go
// +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
|
|
)
|
|
|
|
func init() {
|
|
featureNameToBit[FeatureNameOperations] = FeatureOperations
|
|
}
|