Free partition space isn't correctly updated after erasing
Bug #1413494 reported by
Yu Ning
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usb-creator (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Ubuntu 14.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
usb-creator 0.2.56.3
3) What you expected to happen
First prepare an usbstick dd'ed with zero (dd if=/dev/zero of=/dev/SDB bs=1M count=1), then erase it with usb-creator-gtk.
After the erasing it should display the free partition space correctly, which is usually the same value with the usbstick capacity.
4) What happened instead
After the erasing it just display the free space as an empty string "", and we can't burn them selected source ISO in such a case.
Related branches
lp://staging/~yuningdodo/usb-creator/usb-creator.lp1413494-auto-mount-after-format
Rejected
for merging
into
lp://staging/usb-creator
- Yu Ning (community): Disapprove
- Mathieu Trudel-Lapierre: Needs Fixing
- Brian Murray: Pending requested
-
Diff: 34 lines (+9/-1)1 file modifiedbin/usb-creator-helper (+9/-1)
lp://staging/~yuningdodo/usb-creator/usb-creator.lp1413494v2-update-free-space-after-format
Ready for review
for merging
into
lp://staging/usb-creator
- Brian Murray: Pending requested
- usb-creator hackers: Pending requested
-
Diff: 44 lines (+20/-0)1 file modifiedusbcreator/backends/udisks/backend.py (+20/-0)
To post a comment you must log in.
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.