mirror of
https://github.com/ceph/go-ceph
synced 2024-12-30 10:12:07 +00:00
Convert RBD feature flags to constants with iota
This commit is contained in:
parent
b2d948844f
commit
340e124452
24
rbd/rbd.go
24
rbd/rbd.go
@ -16,15 +16,27 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// RBD features
|
||||||
|
RbdFeatureLayering uint64 = 1 << iota
|
||||||
|
RbdFeatureStripingV2
|
||||||
|
RbdFeatureExclusiveLock
|
||||||
|
RbdFeatureObjectMap
|
||||||
|
RbdFeatureFastDiff
|
||||||
|
RbdFeatureDeepFlatten
|
||||||
|
RbdFeatureJournaling
|
||||||
|
RbdFeatureDataPool
|
||||||
|
RbdFeatureOperations
|
||||||
|
RbdFeatureMigrating
|
||||||
|
)
|
||||||
|
|
||||||
//
|
//
|
||||||
type RBDError int
|
type RBDError int
|
||||||
|
|
||||||
var RbdErrorImageNotOpen = errors.New("RBD image not open")
|
var (
|
||||||
var RbdErrorNotFound = errors.New("RBD image not found")
|
RbdErrorImageNotOpen = errors.New("RBD image not open")
|
||||||
|
RbdErrorNotFound = errors.New("RBD image not found")
|
||||||
//Rdb feature
|
)
|
||||||
var RbdFeatureLayering = uint64(1 << 0)
|
|
||||||
var RbdFeatureStripingV2 = uint64(1 << 1)
|
|
||||||
|
|
||||||
//
|
//
|
||||||
type ImageInfo struct {
|
type ImageInfo struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user