<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, dfaure, meven, sitter.<br />Herald added a project: Frameworks.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29485">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Use KIO::FileSystemFreeSpaceJob to check free space for remote urls.</p>
<p>Thanks to sitter for pin-pointing the responsible code in the bug report,<br />
and to kbroulik for pointing out the existence of KIO::FileSystemFreeSpaceJob.</p>
<p>Also use UDSEntry to check writability for both local and remote urls.</p>
<p>BUG: 418443</p>
<p>FIXED-IN: 5.71</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>testtrash unit test fails (again...)</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Find/create a local partition with a small capacity, copying a file/dir that is bigger than the partition will show the error message as before</li>
<li class="remarkup-list-item">Do the same for a remote url (I tested with sftp://), an error message about not having enough free space is shown</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>l-freespace-remote-2 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29485">https://phabricator.kde.org/D29485</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/copyjob.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, meven, sitter<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>