WRITE_CLASS_ENCODER(GroupSpec);
-enum SnapshotNamespaceType {
+enum SnapshotNamespaceType : uint32_t {
SNAPSHOT_NAMESPACE_TYPE_USER = 0,
SNAPSHOT_NAMESPACE_TYPE_GROUP = 1,
SNAPSHOT_NAMESPACE_TYPE_TRASH = 2,
namespace librbd {
namespace journal {
-enum EventType {
+enum EventType : uint32_t {
EVENT_TYPE_AIO_DISCARD = 0,
EVENT_TYPE_AIO_WRITE = 1,
EVENT_TYPE_AIO_FLUSH = 2,
// Journal Client data structures
-enum ClientMetaType {
+enum ClientMetaType : uint32_t {
IMAGE_CLIENT_META_TYPE = 0,
MIRROR_PEER_CLIENT_META_TYPE = 1,
CLI_CLIENT_META_TYPE = 2
namespace librbd {
namespace mirroring_watcher {
-enum NotifyOp {
+enum NotifyOp : uint32_t {
NOTIFY_OP_MODE_UPDATED = 0,
NOTIFY_OP_IMAGE_UPDATED = 1
};
namespace librbd {
namespace trash_watcher {
-enum NotifyOp {
+enum NotifyOp : uint32_t {
NOTIFY_OP_IMAGE_ADDED = 0,
NOTIFY_OP_IMAGE_REMOVED = 1
};
typedef std::vector<Dependency> Dependencies;
-enum ActionType {
+enum ActionType : uint8_t {
ACTION_TYPE_START_THREAD = 0,
ACTION_TYPE_STOP_THREAD = 1,
ACTION_TYPE_READ = 2,
typedef std::set<std::string> GlobalImageIds;
typedef std::map<std::string, ActionType> ImageActionTypes;
-enum PolicyMetaType {
+enum PolicyMetaType : uint32_t {
POLICY_META_TYPE_NONE = 0,
};
namespace mirror {
namespace instance_watcher {
-enum NotifyOp {
+enum NotifyOp : uint32_t {
NOTIFY_OP_IMAGE_ACQUIRE = 0,
NOTIFY_OP_IMAGE_RELEASE = 1,
NOTIFY_OP_PEER_IMAGE_REMOVED = 2,
virtual void handle_instances_removed(const InstanceIds& instance_ids) = 0;
};
-enum NotifyOp {
+enum NotifyOp : uint32_t {
NOTIFY_OP_HEARTBEAT = 0,
NOTIFY_OP_LOCK_ACQUIRED = 1,
NOTIFY_OP_LOCK_RELEASED = 2,