Merge lp://staging/~yuningdodo/usb-creator/usb-creator.lp1413494-auto-mount-after-format into lp://staging/usb-creator
Proposed by
Yu Ning
Status: | Rejected |
---|---|
Rejected by: | Mathieu Trudel-Lapierre |
Proposed branch: | lp://staging/~yuningdodo/usb-creator/usb-creator.lp1413494-auto-mount-after-format |
Merge into: | lp://staging/usb-creator |
Diff against target: |
34 lines (+9/-1) 1 file modified
bin/usb-creator-helper (+9/-1) |
To merge this branch: | bzr merge lp://staging/~yuningdodo/usb-creator/usb-creator.lp1413494-auto-mount-after-format |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Yu Ning (community) | Disapprove | ||
Mathieu Trudel-Lapierre | Needs Fixing | ||
Brian Murray | Pending | ||
Review via email: mp+250256@code.staging.launchpad.net |
Description of the change
I checked the source code and found usb-creator can only calculate the free space for a mounted partition, however the newly formated partition isn't mounted.
So to fix the issue we could mount it automatically after the formating. In the attached patch this job is done in the dbus method Format() in usb-creator-helper. In my own test it works fine.
To post a comment you must log in.
One problem for this patch is it will mount the new partition as root, so the normal user can not unmount it.
I have proposed another patch to mount the new partition as the normal user: /code.launchpad .net/~yuningdod o/usb-creator/ usb-creator. lp1413494v2- update- free-space- after-format/ +merge/ 250258
https:/
Anyway, I think below change is still needed, although it's a different issue:
8 - unmount_all(udisks, dev)
9 + unmount_all(udisks, parent_dev)