diff options
Diffstat (limited to 'rola-utils/constants')
| -rw-r--r-- | rola-utils/constants/src/bucket.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rola-utils/constants/src/bucket.rs b/rola-utils/constants/src/bucket.rs index e2ebff2..b195b93 100644 --- a/rola-utils/constants/src/bucket.rs +++ b/rola-utils/constants/src/bucket.rs @@ -15,6 +15,9 @@ mod consts { /// Tag storage directory, used to record tags for easy file location pub const DIR_BUCKET_ID_TAGS: &str = "./tags/"; + /// ID mapping table, used to map local IDs to remote IDs (client-only) + pub const DIR_BUCKET_IDMAP: &str = "./map/"; + /// Full object file path template pub const FILE_BUCKET_OBJ: &str = "./objects/{slice1}/{slice2}/{fullname}"; @@ -33,6 +36,16 @@ mod consts { /// Tag file, internally points to a file_id pub const FILE_BUCKET_ID_TAG: &str = "./tags/{tag_name}"; + + /// ID mapping chunk, used to map local IDs to remote IDs (client-only) + /// 26635 bytes per chunk + pub const FILE_BUCKET_IDMAP: &str = "./map/{chunk_num}"; + + /// Remote BUCKET binding (client-only) + pub const FILE_BUCKET_BIND: &str = "./BIND_{bind_id}"; + + /// Prefix of remote BUCKET binding file (client-only) + pub const PREFIX_BUCKET_BIND: &str = "BIND_"; } pub use consts::*; |
