-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AgamaProposal: fix bug when partitions are searched but not managed (#…
…1767) ## Problem When a drive was configured with an empty search for partitions like this (in which there is no configuration about deleting or resizing the found partitions)... ```json { "storage": { "drives": [ { "partitions": [ { "search": "*" }, { "filesystem": { "path": "/" } } ] } ] } } ``` ...all the matched pre-existing partitions are considered as candidates to be shrunk. ## Solution With this fix, partitions with no actions do not generate any SpaceMaker action. ## Bonus `AgamaProposal` now returns an exception of type `Y2Storage::NoDiskSpaceError` when the SpaceMaker fails to find space. That was the documented behavior, but a generic `Y2Storage::Error` was returned instead. ## Testing - Added a new unit test - Tested manually
- Loading branch information
Showing
5 changed files
with
59 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Thu Nov 14 15:34:17 UTC 2024 - Ancor Gonzalez Sosa <[email protected]> | ||
|
||
- Storage: fixed bug when existing partitions were searched at the | ||
config but not deleted or resized (gh#agama-project/agama#1767). | ||
|
||
------------------------------------------------------------------- | ||
Thu Nov 14 13:26:23 UTC 2024 - Ancor Gonzalez Sosa <[email protected]> | ||
|
||
|
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