-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem The Agama storage service currently exports a tree of devices on D-Bus. Such a tree only contains objects for the candidate devices for the installation. But the information about their partitions is missing. Partitions are need for serveral reasons, for example, to indicate how to find space in the selected devices. ## Solution Make the tree of devices to include objects for the partitions. The partition object implements the *org.opensuse.Agama.Storage1.Block* interface. ~~~ # busctl --address unix:path=/run/agama/bus tree org.opensuse.Agama.Storage1 └─/org └─/org/opensuse └─/org/opensuse/Agama └─/org/opensuse/Agama/Storage1 ├─/org/opensuse/Agama/Storage1/Proposal └─/org/opensuse/Agama/Storage1/system ├─/org/opensuse/Agama/Storage1/system/68 ├─/org/opensuse/Agama/Storage1/system/69 ├─/org/opensuse/Agama/Storage1/system/70 ├─/org/opensuse/Agama/Storage1/system/71 ├─/org/opensuse/Agama/Storage1/system/77 ├─/org/opensuse/Agama/Storage1/system/79 ├─/org/opensuse/Agama/Storage1/system/80 ├─/org/opensuse/Agama/Storage1/system/82 ├─/org/opensuse/Agama/Storage1/system/83 └─/org/opensuse/Agama/Storage1/system/85 # busctl --address unix:path=/run/agama/bus introspect org.opensuse.Agama.Storage1 /org/opensuse/Agama/Storage1/system/68 org.opensuse.Agama.Storage1.PartitionTable NAME TYPE SIGNATURE RESULT/VALUE FLAGS .Partitions property ao 1 "/org/opensuse/Agama/Storage1/system/… emits-change .Type property s "gpt" emits-change # busctl --address unix:path=/run/agama/bus get-property org.opensuse.Agama.Storage1 /org/opensuse/Agama/Storage1/system/68 org.opensuse.Agama.Storage1.PartitionTable Partitions ao 1 "/org/opensuse/Agama/Storage1/system/77" # busctl --address unix:path=/run/agama/bus introspect org.opensuse.Agama.Storage1 /org/opensuse/Agama/Storage1/system/77 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - org.opensuse.Agama.Storage1.Block interface - - - .Active property b true emits-change .Name property s "/dev/vdb1" emits-change .RecoverableSize property t 2145386496 emits-change .Size property t 2147483648 emits-change .Systems property as 0 emits-change .UdevIds property as 0 emits-change .UdevPaths property as 1 "pci-0000:08:00.0-part1" emits-change ~~~ ## Testing * Added new unit tests * Tested manually
- Loading branch information
Showing
9 changed files
with
210 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
------------------------------------------------------------------- | ||
Mon Jan 29 13:51:30 UTC 2024 - José Iván López González <[email protected]> | ||
|
||
- Export partitions on D-Bus (gh#openSUSE/agama#1016). | ||
|
||
------------------------------------------------------------------- | ||
Thu Jan 18 14:55:36 UTC 2024 - José Iván López González <[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
Oops, something went wrong.