Bug 273095 - method teardown() seems to perform a "eject" instead of "umount" on some usb devices
Summary: method teardown() seems to perform a "eject" instead of "umount" on some usb ...
Status: RESOLVED DUPLICATE of bug 293906
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: libsolid-udisks (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 07:07 UTC by Ben Gouhier
Modified: 2013-03-05 12:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Gouhier 2011-05-12 07:07:34 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

I am using the program quick-usb-formatter which adds an entry in the device manager in the systray. (http://opendesktop.org/content/show.php?content=137493)
Before formatting the device, the program calls the method teardown() to unmount the device to format. However, this action sometimes fully ejects the device which disappear from /dev/sd*. The program is then unable to format it. The device also disappear from the device manager. I have to unplug and replug it to have it back.

Using 'udisks --unmount /dev/sdb1' works fine though, because /dev/sdb1 doesnt disappear. I would expect the same action from the method teardown(). I cant figure out why it happens only on some devices since I dont know much about c++ and even less about kde/solid libs. I would be happy to help to tackle this, if anyone have any clue about what is wrong.

Reproducible: Sometimes

Steps to Reproduce:
Insert a usb key/hd, mount it in the device manager (in the systray).
Unmount it from the systray.


Actual Results:  
In some cases the device disappears from the device manager, and the corresponding entry in /dev as well. 

Expected Results:  
In other cases the device is only unmounted and still appears in the device manager, and can be mounted again when clicking on the mount icon. The entry in /dev is not removed.

Using kde 4.6.3 on Kubuntu natty with kubuntu updates ppa.
Comment 1 Alex Fiestas 2013-03-03 18:11:33 UTC
Lukas, any idea of this? we fixed something similar iirc.
Comment 2 Lukáš Tinkl 2013-03-05 12:01:48 UTC

*** This bug has been marked as a duplicate of bug 293906 ***