Does not provide UI notification when a partition cannot be unmounted.

Bug #460966 reported by Evan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: usb-creator

The usb-creator-helper process tries to unmount all partitions before formatting, but it passes on any exceptions. When a partition cannot be unmounted, this causes it to proceed to the PartitionTableCreate method call, which then fails with a device busy exception. This notification is not propagated to the the user interface.

usb-creator 2009-10-26 10:22:14,748 (ERROR) backend.py:252: Could not format the device:
Traceback (most recent call last):
  File "./bin/../usbcreator/backends/devicekit/backend.py", line 250, in format
    self.helper.Format(device, timeout=MAX_DBUS_TIMEOUT)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DeviceKit.Disks.Error.Busy: One or more partitions are busy on /dev/sdb

To fix this, we should handle exceptions in unmounting a device by using devicekit-disks to find out what files are open on the device and pass that information on to the user interface. We should also handle general exceptions in the Format method and pass that along to the user interface so it can provide a generic "format failed" message.

Evan (ev)
Changed in usb-creator (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.