Review Request 125290: Refresh Solid's device list before querying in kio_trash

Bartosz Sławianowski eplightning at outlook.com
Mon Sep 28 11:42:19 UTC 2015



> On Sept. 26, 2015, 6:41 p.m., David Edmundson wrote:
> > do you have commit access?

Nope, would be nice if someone else could commit this


- Bartosz


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


On Sept. 19, 2015, 7:14 p.m., Bartosz Sławianowski wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125290/
> -----------------------------------------------------------
> 
> (Updated Sept. 19, 2015, 7:14 p.m.)
> 
> 
> Review request for KDE Frameworks and David Faure.
> 
> 
> Repository: kio
> 
> 
> Description
> -------
> 
> We need to process events in Qt event loop before querying Solid's device list. Solid caches devices and relies on signals to refresh them (at the very least that's how fstab backend works) which is a problem if kio_trash process is reused.
> 
> Currently if kio_trash process is reused and there were some device changes (for example new NFS share was mounted) kio_trash will fail to choose valid trash directory for "trashing" file - or fail to find all trash directories (in case of list action). Next reuse of the same process would actually succeed because TrashImpl::move (which is called later in the process of trashing file) enters the loop.
> 
> 
> Diffs
> -----
> 
>   src/ioslaves/trash/trashimpl.cpp 5a2832a 
>   src/ioslaves/trash/trashimpl.h 9881d8e 
> 
> Diff: https://git.reviewboard.kde.org/r/125290/diff/
> 
> 
> Testing
> -------
> 
> Arch Linux
> 
> 
> Thanks,
> 
> Bartosz Sławianowski
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150928/305df6df/attachment.html>


More information about the Kde-frameworks-devel mailing list