[metadata space map] Restrict space map size
Previously it would crash with v. large metadata areas.
This commit is contained in:
@@ -61,6 +61,7 @@ namespace persistent_data {
|
||||
};
|
||||
|
||||
unsigned const MAX_METADATA_BITMAPS = 255;
|
||||
unsigned const MAX_METADATA_BLOCKS = (255 * ((1 << 14) - 64));
|
||||
unsigned const ENTRIES_PER_BYTE = 4;
|
||||
|
||||
struct metadata_index {
|
||||
|
Reference in New Issue
Block a user