mirror of
https://github.com/ceph/go-ceph
synced 2024-12-21 05:43:13 +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"
|
||||
)
|
||||
|
||||
const (
|
||||
// RBD features
|
||||
RbdFeatureLayering uint64 = 1 << iota
|
||||
RbdFeatureStripingV2
|
||||
RbdFeatureExclusiveLock
|
||||
RbdFeatureObjectMap
|
||||
RbdFeatureFastDiff
|
||||
RbdFeatureDeepFlatten
|
||||
RbdFeatureJournaling
|
||||
RbdFeatureDataPool
|
||||
RbdFeatureOperations
|
||||
RbdFeatureMigrating
|
||||
)
|
||||
|
||||
//
|
||||
type RBDError int
|
||||
|
||||
var RbdErrorImageNotOpen = errors.New("RBD image not open")
|
||||
var RbdErrorNotFound = errors.New("RBD image not found")
|
||||
|
||||
//Rdb feature
|
||||
var RbdFeatureLayering = uint64(1 << 0)
|
||||
var RbdFeatureStripingV2 = uint64(1 << 1)
|
||||
var (
|
||||
RbdErrorImageNotOpen = errors.New("RBD image not open")
|
||||
RbdErrorNotFound = errors.New("RBD image not found")
|
||||
)
|
||||
|
||||
//
|
||||
type ImageInfo struct {
|
||||
|
Loading…
Reference in New Issue
Block a user