| 150 | |
| 151 | |
| 152 | void CryptSettings::GetSettings(CryptMountOptions &opts) |
| 153 | { |
| 154 | |
| 155 | VERIFY(GetSettingCurrent(MULTITHREADED, opts.multithreaded)); |
| 156 | |
| 157 | VERIFY(GetSettingCurrent(BUFFERBLOCKS, opts.numbufferblocks)); |
| 158 | |
| 159 | if (opts.numbufferblocks < 1 || opts.numbufferblocks * 4 > MAX_IO_BUFFER_KB || !is_power_of_two(opts.numbufferblocks)) |
| 160 | opts.numbufferblocks = BUFFERBLOCKS_DEFAULT; |
| 161 | |
| 162 | VERIFY(GetSettingCurrent(CACHETTL, opts.cachettl)); |
| 163 | |
| 164 | VERIFY(GetSettingCurrent(CASEINSENSITIVE, opts.caseinsensitive)); |
| 165 | |
| 166 | VERIFY(GetSettingCurrent(MOUNTMANAGER, opts.mountmanager)); |
| 167 | |
| 168 | VERIFY(GetSettingCurrent(MOUNTMANAGERWARN, opts.mountmanagerwarn)); |
| 169 | |
| 170 | VERIFY(GetSettingCurrent(DELETE_SPURRIOUS_FILES, opts.deletespurriousfiles)); |
| 171 | |
| 172 | VERIFY(GetSettingCurrent(ENCRYPT_KEYS_IN_MEMORY, opts.encryptkeysinmemory)); |
| 173 | |
| 174 | VERIFY(GetSettingCurrent(CACHE_KEYS_IN_MEMORY, opts.cachekeysinmemory)); |
| 175 | |
| 176 | VERIFY(GetSettingCurrent(FAST_MOUNTING, opts.fastmounting)); |
| 177 | |
| 178 | VERIFY(GetSettingCurrent(DENY_OTHER_SESSIONS, opts.denyothersessions)); |
| 179 | |
| 180 | VERIFY(GetSettingCurrent(DENY_SERVICES, opts.denyservices)); |
| 181 | |
| 182 | VERIFY(GetSettingCurrent(FLUSH_AFTER_WRITE_EXFAT, opts.flushafterwrite.exFAT)); |
| 183 | |
| 184 | VERIFY(GetSettingCurrent(FLUSH_AFTER_WRITE_FAT32, opts.flushafterwrite.fat32)); |
| 185 | |
| 186 | VERIFY(GetSettingCurrent(FLUSH_AFTER_WRITE_NTFS, opts.flushafterwrite.ntfs)); |
| 187 | |
| 188 | VERIFY(GetSettingCurrent(FLUSH_AFTER_WRITE_NOT_NTFS, opts.flushafterwrite.not_ntfs)); |
| 189 | |
| 190 | VERIFY(GetSettingCurrent(FLUSH_AFTER_WRITE_NO_SPARSE_FILES, opts.flushafterwrite.sparse_files_not_supported)); |
| 191 | } |
| 192 | |
| 193 | |
| 194 | bool CryptSettings::SaveSetting(CryptSettingsRegistryValuesKeys key, int val) |
no test coverage detected