<table><tr><td style="">broulik created this revision.<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added subscribers: Frameworks, plasma-devel.
</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/D5034" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>These fstab options allows an administrator to specify names and icons intended for the user, shown in a GUI.</p>
<p>For details, see <a href="https://git.gnome.org/browse/gvfs/tree/monitor/udisks2/what-is-shown.txt" class="remarkup-link" target="_blank" rel="noreferrer">https://git.gnome.org/browse/gvfs/tree/monitor/udisks2/what-is-shown.txt</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>This is a frameworks port and cleanup of <a href="https://git.reviewboard.kde.org/r/113587" class="remarkup-link" target="_blank" rel="noreferrer">https://git.reviewboard.kde.org/r/113587</a></p>
<p>Placed the following in <tt style="background: #ebebeb; font-size: 13px;">/etc/fstab</tt></p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">hostname:/ /mnt/ nfs4 defaults,_netdev,user,rw,exec,comment=x-gvfs-show,x-gvfs-name=Test%20Folder,x-gvfs-icon=folder-home,timeo=14,noatime 0 0</pre></div>
<p>Got the following entry:<br />
<a href="https://phabricator.kde.org/F2800877" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F2800877: Screenshot_20170313_152729.png</a><br />
Also verified that <tt style="background: #ebebeb; font-size: 13px;">comment=x-gvfs-hide</tt> hides the entry. I did not implement <tt style="background: #ebebeb; font-size: 13px;">x-gvfs-show</tt> as we always show all devices no matter where they are, so the override to forcefully show it is of no use to us.</p></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/D5034" rel="noreferrer">https://phabricator.kde.org/D5034</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/solid/devices/backends/fstab/fstabdevice.cpp<br />
src/solid/devices/backends/fstab/fstabdevice.h<br />
src/solid/devices/backends/fstab/fstabhandling.cpp<br />
src/solid/devices/backends/fstab/fstabhandling.h<br />
src/solid/devices/backends/fstab/fstabstorageaccess.cpp<br />
src/solid/devices/backends/fstab/fstabstorageaccess.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, dfaure<br /><strong>Cc: </strong>plasma-devel, Frameworks, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>