commit | d6071fc25a9880e8b622792b1e48d83fb5010e5e | [log] [tgz] |
---|---|---|
author | John Edward Broadbent <jebr@google.com> | Thu Mar 31 19:33:21 2022 -0700 |
committer | John Edward Broadbent <jebr@google.com> | Fri Apr 15 14:00:59 2022 -0700 |
tree | b4572b9200ef1a08657895faddaa8202b12976fc | |
parent | 5d799bb97ca8759f39a35f1121f77b03c4efbfba [diff] |
Fix Short read/write issue It was possible for "short" reads and writes to cause the pattern and zero steps to not work correctly. This change adds logic to deal with the short reads. Tested: unit test and machine test root@bmc# time busctl call xyz.openbmc_project.eStoraged.mmcblk0 \ > /xyz/openbmc_project/inventory/storage/mmcblk0 \ > xyz.openbmc_project.Inventory.Item.Volume Erase s \ > xyz.openbmc_project.Inventory.Item.Volume.EraseMethod.ZeroOverWrite \ > --timeout=1200 real 6m0.815s user 0m0.010s sys 0m0.010s Change-Id: If8df9bdba159a3bcfa77104a4c17b8d352794db2 Signed-off-by: John Edward Broadbent <jebr@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.