Bug 445294 - Dolphin and Disks & Devices applet does not clearly say what is happening when safe device removal fails due to incomplete file copy. File system is sometimes corrupted when I try to access the device while safe removing is in progress, causing data loss.
Summary: Dolphin and Disks & Devices applet does not clearly say what is happening whe...
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.87.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 21:30 UTC by Patrick Silva
Modified: 2024-05-10 19:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (114.34 KB, image/png)
2021-11-10 21:30 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2021-11-10 21:30:04 UTC
Created attachment 143422 [details]
screenshot

STEPS TO REPRODUCE
1. connect a removable storage device (I use a flash drive) to usb port (my system does not mount removable devices automatically)
2. open Dolphin
3. choose a big file (I used a 1.3 GiB video file) and copy it to your removable device: drag it, drop it on your device in Places panel of Dolphin and choose "Copy here" from context menu
4. when Plasma (falsely, due to annoying and confusing bug 281270) notifies finished file copy, try to remove your device safely: right-click on your device in Places panel of Dolphin and choose "Safely remove"

OBSERVED RESULT
The device does not disappear from Places panel, its icon indicates that it was unmounted and Dolphin does not
display any message saying that something is in progress.
When I open Disks & Devices applet in system tray, it says "Removing..." and it remains in this state until the file copy is really finished. Please see the attached screenshot.
If I try to access the removable device via Dolphin while Disks & Devices applet says "Removing...",
the file system (ntfs in my case) is sometimes corrupted (dmesg log says "I/O error" next time I try to mount it) and data is lost.

EXPECTED RESULT
if I'm not mistaken, in the past both Dolphin and Disks & Devices applet clearly told users when safe removing failed for any reason. This is the expected result. 

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-11-12 21:47:53 UTC
You sure this isn't just the same issue as Bug 281270?
Comment 2 Patrick Silva 2021-11-14 15:22:15 UTC
I was using linux-zen 5.15 from Testing repos when reporting this bug. Currently I'm using linux-zen 5.15.2 from Core repo and I'm unable to reproduce. Now Plasma only shows 'Copying (Finished)' notification when file copy is really completed, then I use 'Safely remove' option
of Dolphin and the device is removed as expected.

Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland