| commit | 1755d1b9657d1461e7ad444b0a8fc9ab11dd133c | [log] [tgz] |
|---|---|---|
| author | John Wedig <johnwedig@google.com> | Mon Jul 21 22:26:30 2025 +0000 |
| committer | John Wedig <johnwedig@google.com> | Mon Jul 28 20:17:18 2025 +0000 |
| tree | f7f6c501e6b10211c66dfdb763c43c88e4c25cd9 | |
| parent | 71f0903385927b9f279691cedc6cfc75eb57fb0a [diff] |
Make lifetime property read/write
This commit makes the property PredictedMediaLifeLeftPercent
read-writable. This property is exposed through Redfish, so by making
this property read-writable, we can better test other things that
consume this property through Redfish.
Tested:
```
$ busctl get-property xyz.openbmc_project.eStoraged \
/xyz/openbmc_project/inventory/storage/mmcblk0 \
xyz.openbmc_project.Inventory.Item.Drive PredictedMediaLifeLeftPercent
y 100
$ busctl set-property xyz.openbmc_project.eStoraged \
/xyz/openbmc_project/inventory/storage/mmcblk0 \
xyz.openbmc_project.Inventory.Item.Drive PredictedMediaLifeLeftPercent y 90
$ curl localhost:80/redfish/v1/Chassis/dcscm/Drives/mmcblk0
{
...
"PredictedMediaLifeLeftPercent": 90,
...
}
```
Change-Id: I93bde64e76ee45640f85b00222df6e4a8a98ff4c
Signed-off-by: John Wedig <johnwedig@google.com>
This daemon serves as an abstraction for an encrypted storage device, encapsulating the security functionality and providing a D-Bus interface to manage the encrypted filesystem on the device. Using the D-Bus interface, other software components can interact with eStoraged to do things like create a new encrypted filesystem, wipe its contents, lock/unlock the device, or change the password.