if(offsetOriginalDetails < 0 || offsetOriginalDetails > rafLength)
throw new StorageFormatException("Invalid offset (original metadata)");
offsetBasicSettings = dis.readLong();
if(offsetBasicSettings != basicSettingsOffset)
throw new StorageFormatException("Invalid basic settings offset (not the same as computed)");
if(completeViaTruncation != dis.readBoolean())
throw new StorageFormatException("Complete via truncation flag is wrong");
int compatMode = dis.readInt();
if(compatMode < 0 || compatMode > CompatibilityMode.values().length)
throw new StorageFormatException("Invalid compatibility mode "+compatMode);
finalMinCompatMode = CompatibilityMode.values()[compatMode];