Review Request 125248: Display name of process which blocks umount / eject

Martin Klapetek martin.klapetek at gmail.com
Tue Sep 15 22:41:11 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125248/#review85469
-----------------------------------------------------------



dataengines/devicenotifications/ksolidnotify.cpp (line 122)
<https://git.reviewboard.kde.org/r/125248/#comment59066>

    This should be a private method rather than a static method
    
    (and also const QString& devicePath --> const QString &devicePath)
    
    ...I'm thinking that maybe this method should become part of Solid::StorageAccess itself? Though I'm not the maintainer so I dunno but it seems it would be useful there



dataengines/devicenotifications/ksolidnotify.cpp (lines 135 - 136)
<https://git.reviewboard.kde.org/r/125248/#comment59067>

    Our codestyle requires braces around ifs



dataengines/devicenotifications/ksolidnotify.cpp (lines 149 - 150)
<https://git.reviewboard.kde.org/r/125248/#comment59068>

    {}s
    
    (same in the other block)


- Martin Klapetek


On Sept. 15, 2015, 11:41 p.m., Igor Poboiko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125248/
> -----------------------------------------------------------
> 
> (Updated Sept. 15, 2015, 11:41 p.m.)
> 
> 
> Review request for Plasma and Solid.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> An attempt to implement feature from [bug 96107](https://bugs.kde.org/show_bug.cgi?id=96107) (see summary).
> 
> On umount/eject error it runs "lsof" executable, gets PIDs of blocking processes and obtains names of processes via KSysGuard::Process machinery. Finally it appends obtained information to error message which is shown in tooltip of Device Notifier applet.
> 
> 
> Diffs
> -----
> 
>   dataengines/devicenotifications/CMakeLists.txt 3f7fd83 
>   dataengines/devicenotifications/ksolidnotify.cpp 35d49d6 
> 
> Diff: https://git.reviewboard.kde.org/r/125248/diff/
> 
> 
> Testing
> -------
> 
> Tested unmount on busy device with several processes blocking it. Did not test eject, since I have no optical disc drive :(
> 
> 
> File Attachments
> ----------------
> 
> Applet with error message
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/09/15/3b1b64fc-abff-4633-9dca-621388edf086__snapshot11.png
> 
> 
> Thanks,
> 
> Igor Poboiko
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150915/360c9987/attachment-0001.html>


More information about the Plasma-devel mailing list