Review Request 112173: Do not use QFileInfo to obtain the size of a symlink in kio_trash
David Faure
faure at kde.org
Wed Aug 21 08:53:26 BST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112173/#review38259
-----------------------------------------------------------
Ship it!
Ah I see. Sorry, I misunderstood. But yes I very much prefer the second version of the patch.
Many thanks for your bugfixes!
- David Faure
On Aug. 21, 2013, 5:20 a.m., Dawit Alemayehu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/112173/
> -----------------------------------------------------------
>
> Review request for KDE Runtime, David Faure and Tobias Koenig.
>
>
> Description
> -------
>
> The attached patch fixes a bug where deleting a symlink to a very large file causes a "trash has reached its limit error. This happens because the code that is used to determine the amount of space available in the trashcan uses QFileInfo::size to determine the size of a file. This will not work because QFileInfo::size returns the size of the actual file the symlink points to and not the size of the symlink itself. See the documentation for QFileInfo.
>
>
> This addresses bug 253776.
> http://bugs.kde.org/show_bug.cgi?id=253776
>
>
> Diffs
> -----
>
> kioslave/trash/discspaceutil.cpp 8e76ece
>
> Diff: http://git.reviewboard.kde.org/r/112173/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Dawit Alemayehu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20130821/5f5cd636/attachment.htm>
More information about the kde-core-devel
mailing list