Merge lp:~mandel/ciborium/remount-drives-take-2 into lp:ciborium
| Status: | Merged |
|---|---|
| Approved by: | Sergio Schvezov on 2015-02-11 |
| Approved revision: | 97 |
| Merged at revision: | 88 |
| Proposed branch: | lp:~mandel/ciborium/remount-drives-take-2 |
| Merge into: | lp:ciborium |
| Diff against target: |
1170 lines (+962/-110) 8 files modified
cmd/ciborium/main.go (+2/-0) udisks2/common_test.go (+28/-0) udisks2/dispatcher.go (+174/-0) udisks2/jobs.go (+147/-0) udisks2/jobs_test.go (+192/-0) udisks2/properties.go (+145/-0) udisks2/properties_test.go (+210/-0) udisks2/udisks2.go (+64/-110) |
| To merge this branch: | bzr merge lp:~mandel/ciborium/remount-drives-take-2 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sergio Schvezov | 2015-02-05 | Approve on 2015-02-11 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-02-11 | |
|
Review via email:
|
|||
Commit Message
Ensure that we remount the drives after we format them. Remove deadlocks.
Description of the Change
The follwing MR does a number of changes to ensure that we can handle the dbus events in an asycn way to work around this go dbus bug https:/
* In the code now jobs are handled by a job manager that keeps track of them to later fwd to a channel with their state.
* The udisks code listens to the diff channels and reacts according to them:
* Additions: new interfaces are added and therefore a new drive is present.
* Removals: Interfaces are done. A drive has gone.
* Jobs: the diff jons performed on udisk that do not represent drives (Erase, Format)
* Udisks tracks the diff formatted drives and will mount them again when the Filesystem interface is re-added.
* Tests have been added to the changes.
- 93. By Manuel de la Peña on 2015-02-05
-
Apply go fmt.
- 94. By Manuel de la Peña on 2015-02-05
-
Remove ugly log line.
| Sergio Schvezov (sergiusens) wrote : | # |
Thanks, the code looks good; just a couple of minor comments.
| Manuel de la Peña (mandel) wrote : | # |
Some answers inline, other changes will come in the next push.
- 95. By Manuel de la Peña on 2015-02-09
-
Update code according to review.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:95
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Sergio Schvezov (sergiusens) wrote : | # |
Some comments on the fixes (redaction)
and some new copyright header comments.
- 96. By Manuel de la Peña on 2015-02-11
-
Update docs and license.
- 97. By Manuel de la Peña on 2015-02-11
-
More typos.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:97
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Sergio Schvezov (sergiusens) wrote : | # |
Tested, seems to work fine; there are some other corner cases that need fixing though (format when device is busy).

PASSED: Continuous integration, rev:94 jenkins. qa.ubuntu. com/job/ ciborium- ci/12/ jenkins. qa.ubuntu. com/job/ ciborium- vivid-amd64- ci/6 jenkins. qa.ubuntu. com/job/ ciborium- vivid-armhf- ci/6 jenkins. qa.ubuntu. com/job/ ciborium- vivid-armhf- ci/6/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ ciborium- vivid-i386- ci/6
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ciborium- ci/12/rebuild
http://