-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more encryption issues on exFAT filesystem (#7162)
* refactor file operations * fix an issue on exFAT systems where the file unique id was not correct for new Realms leading to corruption for encrypted Realms * fix the remaining callsites where a unique id could be reused * add changelog note * fix an error in the tests that would cause spawned processes to not have the same fallback tmp path which could cause issues if running on a filesystem that doesn't support mkfifo such as exFAT * return none in an interprocess race on creating a lock file and getting its unique id * Throw an exception on unique id failure instead of asserting in consideration of external processes. Use prealloc to size the file instead of a separate resize operation. Add the file path to help debug exceptions. * better error handling and cache a File unique id to catch more errors
- Loading branch information
Showing
8 changed files
with
140 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.