D27152: Introduce FilesystemEntry class

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sat Mar 7 15:27:12 GMT 2020


bruns requested changes to this revision.
bruns added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> fstabhandling.cpp:374
> +            const FilesystemEntry fsEntry(fsname, mountpoint, type, QStringList());
> +            globalFstabCache->localData().m_mtabCache.insert(fsEntry.id(), fsEntry);
>          }

Why is the id() a property of the entry now?

- it does not correspond to anything from the fstab/mtab
- it is only used here to generate the key for the cache

Please move the id generation back here, eventually changing it from `_k_deviceNameForMountpoint(const QString &source, const QString &fstype,const QString &mountpoint)` to `_k_deviceIdForFsentry(const FilesystemEntry&)`

REPOSITORY
  R245 Solid

REVISION DETAIL
  https://phabricator.kde.org/D27152

To: hallas, #frameworks, bruns, meven
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200307/93c4fca6/attachment.html>


More information about the Kde-frameworks-devel mailing list