Extend Core API to better model life of an HDD in Dmedia
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Fix Released
|
High
|
Jason Gerard DeRose |
Bug Description
Currently our Core API only has 2 rather crude methods for dealing with the HDD lifecycle:
Core.add_
Core.remove_
Plus we have a hacky mess for how deal with the "default file-store", which will be either /home or /home/username. We need finer-grained API that better models the life of an HDD in Dmedia, and I'm proposing something like this:
Core.create_
Core.connect_
Core.disconnect
Core.downgrade_
Core.purge_
Related branches
- David Jordan: Approve
-
Diff: 1372 lines (+744/-252)13 files modifieddebian/control (+7/-7)
dmedia-cli (+6/-4)
dmedia-service (+36/-29)
dmedia/__init__.py (+8/-2)
dmedia/core.py (+169/-115)
dmedia/local.py (+7/-0)
dmedia/metastore.py (+8/-2)
dmedia/service/udisks.py (+7/-3)
dmedia/tests/test_core.py (+372/-85)
dmedia/tests/test_local.py (+27/-0)
dmedia/tests/test_util.py (+78/-3)
dmedia/util.py (+18/-1)
share/init-filestore (+1/-1)
summary: |
- Extend dmedia.core.Core API to better model life of an HDD in Dmedia + Extend Core API to better model life of an HDD in Dmedia |
Changed in dmedia: | |
status: | In Progress → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |