The issue is here in the backend code:

    def format(self, device):
        try:
            dk = self.bus.get_object(DISKS_IFACE, device)
            logging.debug('def format(%s)' % device)
            device = dk.Get(device, 'device-file', dbus_interface=PROPS_IFACE)
            logging.debug('%s = dk.Get()' % device)
            if dk.Get(device, 'device-is-partition', 
dbus_interface=PROPS_IFACE):
                device = dk.Get(device, 'partition-slave', 
dbus_interface=PROPS_IFACE)
                logging.debug('%s = dk.Get() no. 2' % device)
                dk = self.bus.get_object(DISKS_IFACE, device)
                device = dk.Get(device, 'device-file', 
dbus_interface=PROPS_IFACE)
                logging.debug('%s = dk.Get() no. 3' % device)
            logging.debug('self.formatting = %s' % device)
            self.formatting = device
            self.helper.Format(device, reply_handler=self.format_ended_cb,
                                       error_handler=self.format_failed_cb)
        except dbus.DBusException:
            # Could not talk to usb-creator-helper or devkit.
            logging.exception('Could not format the device:')


More specifically the "if" block logic attempts to determine the "parent" of 
the partition (e.g. the actual device) and then passes that to the helper 
object to format. 

It seems that the original logic surrounding this was that any USB stick
being selected would be completely formatted to be used to boot from. I
believe that this was an unintentional design flaw, and could be
addressed by modifying the above code and the helper object to allow for
formatting only a selected partition.

** Changed in: usb-creator (Ubuntu)
     Assignee: (unassigned) => Roderick B. Greening (roderick-greening)

-- 
Wrong behaviour on format action
https://bugs.launchpad.net/bugs/484252
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to