diff --git a/rbd/rbd.go b/rbd/rbd.go index cd83e79..4e34326 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -24,29 +24,29 @@ import ( const ( // RBD features. - RbdFeatureLayering = C.RBD_FEATURE_LAYERING - RbdFeatureStripingV2 = C.RBD_FEATURE_STRIPINGV2 - RbdFeatureExclusiveLock = C.RBD_FEATURE_EXCLUSIVE_LOCK - RbdFeatureObjectMap = C.RBD_FEATURE_OBJECT_MAP - RbdFeatureFastDiff = C.RBD_FEATURE_FAST_DIFF - RbdFeatureDeepFlatten = C.RBD_FEATURE_DEEP_FLATTEN - RbdFeatureJournaling = C.RBD_FEATURE_JOURNALING - RbdFeatureDataPool = C.RBD_FEATURE_DATA_POOL + RbdFeatureLayering = uint64(C.RBD_FEATURE_LAYERING) + RbdFeatureStripingV2 = uint64(C.RBD_FEATURE_STRIPINGV2) + RbdFeatureExclusiveLock = uint64(C.RBD_FEATURE_EXCLUSIVE_LOCK) + RbdFeatureObjectMap = uint64(C.RBD_FEATURE_OBJECT_MAP) + RbdFeatureFastDiff = uint64(C.RBD_FEATURE_FAST_DIFF) + RbdFeatureDeepFlatten = uint64(C.RBD_FEATURE_DEEP_FLATTEN) + RbdFeatureJournaling = uint64(C.RBD_FEATURE_JOURNALING) + RbdFeatureDataPool = uint64(C.RBD_FEATURE_DATA_POOL) - RbdFeaturesDefault = C.RBD_FEATURES_DEFAULT + RbdFeaturesDefault = uint64(C.RBD_FEATURES_DEFAULT) // Features that make an image inaccessible for read or write by clients that don't understand // them. - RbdFeaturesIncompatible = C.RBD_FEATURES_INCOMPATIBLE + RbdFeaturesIncompatible = uint64(C.RBD_FEATURES_INCOMPATIBLE) // Features that make an image unwritable by clients that don't understand them. - RbdFeaturesRwIncompatible = C.RBD_FEATURES_RW_INCOMPATIBLE + RbdFeaturesRwIncompatible = uint64(C.RBD_FEATURES_RW_INCOMPATIBLE) // Features that may be dynamically enabled or disabled. - RbdFeaturesMutable = C.RBD_FEATURES_MUTABLE + RbdFeaturesMutable = uint64(C.RBD_FEATURES_MUTABLE) // Features that only work when used with a single client using the image for writes. - RbdFeaturesSingleClient = C.RBD_FEATURES_SINGLE_CLIENT + RbdFeaturesSingleClient = uint64(C.RBD_FEATURES_SINGLE_CLIENT) ) // bits for Image.validate() and Snapshot.validate()