Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download: restore saved partitions while writing back first MiB
If we write back the image's GPT and then save partitions afterward, we leave a window where a signal or system crash loses the saved partitions. Do the merge and writeback in one step, within the image_copy callback. This requires SavedPartitions.merge() to read the image's GPT from a separate Reader.
- Loading branch information
Showing
3 changed files
with
175 additions
and
41 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