mirror of
https://github.com/ceph/go-ceph
synced 2024-12-12 17:37:27 +00:00
d6a88f65b7
Applications will mostly want to show names of features to their users, and not just a few bits. With the FeatureSet functions it becomes simple for applications to map the name of a feature to bits, and the other way around Signed-off-by: Niels de Vos <ndevos@redhat.com>
21 lines
449 B
Go
21 lines
449 B
Go
// +build !luminous,!mimic
|
|
|
|
package rbd
|
|
|
|
// #include <rbd/librbd.h>
|
|
import "C"
|
|
|
|
const (
|
|
// FeatureMigrating is the representation of RBD_FEATURE_MIGRATING from
|
|
// librbd
|
|
FeatureMigrating = uint64(C.RBD_FEATURE_MIGRATING)
|
|
|
|
// FeatureNameMigrating is the representation of
|
|
// RBD_FEATURE_NAME_MIGRATING from librbd
|
|
FeatureNameMigrating = C.RBD_FEATURE_NAME_MIGRATING
|
|
)
|
|
|
|
func init() {
|
|
featureNameToBit[FeatureNameMigrating] = FeatureMigrating
|
|
}
|