Bug 417703 - Cannot unmount an external device when it's opened by Krusader
Summary: Cannot unmount an external device when it's opened by Krusader
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-15 12:30 UTC by renom7
Modified: 2022-05-16 06:13 UTC (History)
4 users (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 renom7 2020-02-15 12:30:31 UTC
Cannot unmount an external device, even from Krusader, if any of folders of the device are opened in Krusader. The error message is "Error unmounting /dev/sda1: target is busy".
Comment 1 Patrick Silva 2020-02-18 13:27:22 UTC
I can confirm this issue.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 2 Davide Gianforte 2020-03-10 15:07:29 UTC
This happens only when the external device is browsed on the active tab, not the inactive one nor the not visible ones.

When on the active tab, other programs notify that Krusader is using the device on remove request.
Comment 3 Claudius Ellsel 2020-08-08 20:44:26 UTC
Probably a duplicate of https://bugs.kde.org/show_bug.cgi?id=383668.
Comment 4 Bug Janitor Service 2020-08-21 11:19:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/krusader/-/merge_requests/27
Comment 5 Claudius Ellsel 2020-08-21 15:44:34 UTC
Marking as duplicate after no reaction. From the descriptions I am pretty sure, this is a duplicate. Feel free to change back if I am wrong.

*** This bug has been marked as a duplicate of bug 383668 ***
Comment 6 Nikita Melnichenko 2022-05-16 06:13:16 UTC
Git commit 7b1fd7f6cdb3b39ff85eadf260824c49f396721e by Nikita Melnichenko, on behalf of Davide Gianforte.
Committed on 16/05/2022 at 05:54.
Pushed by melnichenko into branch 'master'.

Unmount devices from external action

Unmount a device when requested from an external program.
Related: bug 383668
FIXED: [ 383668 ] Krusader blocks ejecting of removable drive by self 'krusader' process if drive is opened in it's tab
FIXED: [ 417703 ] Cannot unmount an external device when it's opened by Krusader

M  +1    -0    krusader/GUI/mediabutton.cpp
M  +34   -0    krusader/MountMan/kmountman.cpp
M  +2    -0    krusader/MountMan/kmountman.h

https://invent.kde.org/utilities/krusader/commit/7b1fd7f6cdb3b39ff85eadf260824c49f396721e