Bug 21439 - kactivity keeps files open blocking 'safe removal' tool in plasma5
Summary: kactivity keeps files open blocking 'safe removal' tool in plasma5
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-02 23:03 CEST by Barry Jackson
Modified: 2020-08-05 14:44 CEST (History)
2 users (show)

See Also:
Source RPM: kactivitymanagerd-5.8.7-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Barry Jackson 2017-08-02 23:03:17 CEST
Description of problem:
1. Insert an SD acrd with an RPi OS on it into a card reader.
2. Accept to open in file manager
3. View both partitions on the card in Dolphin
4. Close dolphin
5. Attempt to 'Safely remove the SD card.
6. Operation is blocked as files are open, but no visible application is still in use.

Both partitions are still mounted and lsof reports that kactivity has them in use. Killing the kctivity process allows the 'safe removal' tool to work.

[baz@jackodesktop ~]$ sudo umount /run/media/baz/673b8ab6-6426-474b-87d3-71bff0fcebc3
umount: /run/media/baz/673b8ab6-6426-474b-87d3-71bff0fcebc3: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
[baz@jackodesktop ~]$ sudo lsof /run/media/baz/673b8ab6-6426-474b-87d3-71bff0fcebc3
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
kactivity 2813  baz  cwd    DIR   8,98     4096 130268 /run/media/baz/673b8ab6-6426-474b-87d3-71bff0fcebc3/etc/X11/xinit
[baz@jackodesktop ~]$ sudo kill 2813
[baz@jackodesktop ~]$ df /dev/sdg2
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdg2       3.7G  1.5G  2.0G  43% /run/media/baz/673b8ab6-6426-474b-87d3-71bff0fcebc3

Now the 'safely remove' tool works



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Marja Van Waes 2017-08-02 23:41:48 CEST

CC: (none) => marja11
Assignee: bugsquad => kde

Comment 1 Aurelien Oudelet 2020-08-05 14:44:24 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

Status: NEW => RESOLVED
CC: (none) => ouaurelien
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.