<table><tr><td style="">davidedmundson created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />davidedmundson 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/D17071">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Running stat on a directory gives a size of on ext3 gives a size of</p>

<ol class="remarkup-list" start="4096">
<li class="remarkup-list-item">Running stat on a directory on NTFS gives a size of 0.</li>
</ol>

<p>If you copy some files to another FS the total size is different and it<br />
falsely appears that some data is lost.</p>

<p>We're not trying to count the disk usage, otherwise we'd be looking at<br />
block usage not adding up individual files. Therefore this patch removes<br />
including the directory size as it's a meaningless value.</p>

<p>Note: this patch is separate from "Don't double-count size of<br />
directories in DirectorySizeJob". We would still require both.<br />
I've split it to separate a potentially controversial design choice from<br />
a definite bug.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>More precise unit test passes on ext3</p>

<p>Dolphin properties shows the same value for copied files on an ext3 and ntfs file system</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17071">https://phabricator.kde.org/D17071</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/jobtest.cpp<br />
src/core/directorysizejob.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>