<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, dfaure, meven.<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/D28478">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>On Linux systems that have statx available, stat_dev() returned<br />
stx_dev_major, which could be the same value for different partitions.<br />
Change it to combine stx_dev_major and stx_dev_minor to get a unique<br />
number (meaning a unique UDSEntry::UDS_DEVICE_ID).</p>
<p>Extend JobTest::stat() unit test to check that UDS_DEVICE_ID is unique<br />
for each individual partition.</p>
<p>Also in JobTest::stat(), use a smaller #if/#endif to keep the HTTP stat<br />
bits disabled (it's been disabled since kdelibs4 split so...).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>$ stat /usr/bin/file | grep Device<br />
Device: 804h/2052d Inode: 9168 Links: 1<br />
$ stat ~/.bashrc | grep Device<br />
Device: 803h/2051d Inode: 97 Links: 1</p>
<p>Apply small patch from <a href="http://www.davidfaure.fr/2020/uds_device_test.diff" class="remarkup-link" target="_blank" rel="noreferrer">http://www.davidfaure.fr/2020/uds_device_test.diff</a>,<br />
then:<br />
$ kioclient5 openProperties /usr/bin/file<br />
"DEVICE" 804<br />
$ kioclient5 openProperties ~/.bashrc<br />
"DEVICE" 803</p>
<p>without this change DEVICE would be "8" for both of these files.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>l-statx (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28478">https://phabricator.kde.org/D28478</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/jobtest.cpp<br />
src/ioslaves/file/file_unix.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, meven<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>