mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
close:#1000167427
Signed-off-by: chihe <chihe@oppo.com>
(cherry picked from commit b7af94e2a4)
35 lines
784 B
Go
35 lines
784 B
Go
package flashgroupmanager
|
|
|
|
import (
|
|
"github.com/cubefs/cubefs/util"
|
|
)
|
|
|
|
const (
|
|
LRUCacheSize = 3 << 30
|
|
WriteBufferSize = 4 * util.MB
|
|
)
|
|
|
|
const (
|
|
idKey = "id"
|
|
addrKey = "addr"
|
|
)
|
|
|
|
const (
|
|
keySeparator = "#"
|
|
clusterAcronym = "c"
|
|
maxCommonIDKey = keySeparator + "max_common_id"
|
|
clusterPrefix = keySeparator + clusterAcronym + keySeparator
|
|
flashNodePrefix = keySeparator + "fn" + keySeparator
|
|
flashGroupPrefix = keySeparator + "fg" + keySeparator
|
|
)
|
|
const (
|
|
opSyncAllocCommonID uint32 = 0x0C
|
|
opSyncAddFlashNode uint32 = 0x6A
|
|
opSyncDeleteFlashNode uint32 = 0x6B
|
|
opSyncUpdateFlashNode uint32 = 0x6C
|
|
opSyncAddFlashGroup uint32 = 0x6D
|
|
opSyncDeleteFlashGroup uint32 = 0x6E
|
|
opSyncUpdateFlashGroup uint32 = 0x6F
|
|
opSyncPutCluster uint32 = 0x0D
|
|
)
|