Merge ~morphis/snappy-hwe-snaps/+git/udisks2:bugs/ciborium/only-thumb-and-removable into ~snappy-hwe-team/snappy-hwe-snaps/+git/udisks2:ciborium/0.2.12
Status: | Merged |
---|---|
Approved by: | Scott Sweeny |
Approved revision: | 288072d18cfae802573bdfbcc9e92753811f0bdd |
Merged at revision: | d421248af0c897340cc17421b670eebdfadc8da9 |
Proposed branch: | ~morphis/snappy-hwe-snaps/+git/udisks2:bugs/ciborium/only-thumb-and-removable |
Merge into: | ~snappy-hwe-team/snappy-hwe-snaps/+git/udisks2:ciborium/0.2.12 |
Diff against target: |
128 lines (+72/-8) 5 files modified
cmd/ciborium/main.go (+1/-1) dev/null (+0/-0) run-tests.sh (+25/-0) udisks2/udisks2.go (+22/-7) udisks2/udisks2_test.go (+24/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
System Enablement Bot | continuous-integration | Approve | |
Konrad Zapałowicz (community) | code | Approve | |
Scott Sweeny (community) | Approve | ||
Alfonso Sanchez-Beato | Approve | ||
Review via email: mp+317847@code.launchpad.net |
Description of the change
udisks2: don't mount non-removable and non-thumb devices
We don't want devices which are not marked as removable or as a thumb
drive to be ever selected as candidate for the auto-mounter. The udisks2
API documentation states that some USB storages devices are marked with
MediaRemovable=true even if they don't have any removable media. We need
to make sure that we correctly check both, the MediaRemovable and the
Removable property in our detection logic. In addition to that we then
only want thumb drives to be allowed for the auto-mounter.
This also enables proper CI tests for this branch now that we have capabilities on our CI agent to test things not having spread tests. The tests will build the relevant parts of the source and run available tests.
PASSED: Continuous integration, rev:fc420801e04 b8d5e674c47c93c 97e94bff47e9cb /jenkins. canonical. com/system- enablement/ job/generic- build-snap/ 993/ /jenkins. canonical. com/system- enablement/ job/generic- test-snap/ 683 /jenkins. canonical. com/system- enablement/ job/generic- update- snap-mp/ 901/console
https:/
Executed test runs:
SUCCESS: https:/
None: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/system- enablement/ job/generic- build-snap/ 993/rebuild
https:/