[metadata space map] Restrict space map size

Previously it would crash with v. large metadata areas.
This commit is contained in:
Joe Thornber
2015-06-24 16:32:17 +01:00
parent 125cec0193
commit c6844dc7e6
2 changed files with 6 additions and 0 deletions

View File

@@ -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 {