Bug 331601

Summary: Loop Device fails to clear when unmounted, so it gets listed multiple times
Product: [Applications] dolphin Reporter: kdebugs
Component: panels: placesAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.11.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kdebugs 2014-02-28 08:54:39 UTC
Loop Device mounts are never cleared when the volume is unmounted.  You have to close dolphin and open it again for it to go away.  If you do this frequently, they can really build up.  It's especially confusing if you're working with more than one loop device.

Reproducible: Always

Steps to Reproduce:
1. Open Dolphin
2. Open Konsole, or a Konsole view in Dolphin
3. Run these commands (enter your password for sudo):
truncate -s 100M mydrive
mkfs.ext4 -FL TestFS mydrive
mkdir mymnt
while sleep 1 ; do
 sudo mount mydrive mymnt
 sleep 1
 sudo umount mymnt
done
Actual Results:  
Icon for "Loop Device" shows up in Places when ''mydrive" is mounted, but it doesn't go away when it is dismounted.  When you mount it again, a new entry is created.

Expected Results:  
The Loop Device entry should be cleared away when "mydrive" is unmounted.

Additionally, the label "Loop Device" isn't particularly helpful - it ought, rather, to use the volume label ("TestFS" in the example above.)
Comment 1 Frank Reininghaus 2014-03-01 11:29:39 UTC
Thanks for the bug report. This looks like an issue which has been reported already.

Please see the comments in the other report for ideas about what you can do to help find the root cause of this problem. Thanks.

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