<table><tr><td style="">hallas marked an inline comment as done.<br />hallas added inline comments.
</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/D27152">View Revision</a></tr></table><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D27152#inline-163850">View Inline</a><span style="color: #4b4d51; font-weight: bold;">bruns</span> wrote in <span style="color: #4b4d51; font-weight: bold;">fstabhandling.cpp:374</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">The <tt style="background: #ebebeb; font-size: 13px;">id()</tt> method and members are still part of the FstabEntry, where they do not belong.</p>
<p style="padding: 0; margin: 8px;">The UDIs go through some further mangling in <tt style="background: #ebebeb; font-size: 13px;">FstabHandling::deviceList()</tt>, which should be covered by the unit-tests as well.</p>
<p style="padding: 0; margin: 8px;">Conceptually, the <tt style="background: #ebebeb; font-size: 13px;">_k_deviceNameForMountpoint</tt>/<tt style="background: #ebebeb; font-size: 13px;">_k_deviceNameForFilesystemEntry</tt> should be part of the m_mtabCache/m_fstabCache class (which currently is just a <tt style="background: #ebebeb; font-size: 13px;">QMultiHash<></tt>). This class can then be unit tested easily.</p>
<p style="padding: 0; margin: 8px;">For now, keep the <tt style="background: #ebebeb; font-size: 13px;">_k_deviceNameForMountpoint</tt> inside fstabhandling.cpp</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;"><a href="https://phabricator.kde.org/p/bruns/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@bruns</a> - I am little confused now. You wrote previously that you could see the point in the <tt style="background: #ebebeb; font-size: 13px;">id()</tt> function, but now you want it moved? <br />
What kind of unit test are you missing? I can't quite follow the added mangling in <tt style="background: #ebebeb; font-size: 13px;">FstabHandling::deviceList()</tt>? I don't think we have (or ever have) had any unit test of FstabHandling, but that was one of the things I am trying to achieve was this patch series that breaks up and decouples the code pieces into smaller bits.</p>
<p style="padding: 0; margin: 8px;">Could I ask you to take a look at it again? Sorry for nagging, I just really want to close this up soon and move on with the next patches ;D</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27152">https://phabricator.kde.org/D27152</a></div></div><br /><div><strong>To: </strong>hallas, Frameworks, bruns, meven<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>