-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk: error on PTs with type dos and len(partitions) > 4
Return an error when a partition table is created with type dos and more than 4 partitions. This check can only happen after the partition table is created, otherwise we would have to predict all the partitions that get created automatically, which would duplicate a lot of the logic in NewCustomPartitionTable(). Update tests: - Convert the plain+swap (valid) test to GPT since now it's invalid as DOS. - Add a fail test for a DOS partition table with too many partitions.
- Loading branch information
1 parent
8e2b2b9
commit b923fd8
Showing
2 changed files
with
49 additions
and
12 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