D27703: Filelight: filter out duplicate paths

Aleksei Nikiforov noreply at phabricator.kde.org
Thu Feb 27 15:36:31 GMT 2020


alnikiforov created this revision.
alnikiforov added reviewers: mlaurent, sandsmark.
Herald added a subscriber: kde-utils-devel.
alnikiforov requested review of this revision.

REVISION SUMMARY
  Sometimes, one mount path may be encountered multiple times
  in /proc/self/mounts file.
  For example, when systemd automounting is used.
  In such cases Filelight would display such mount paths multiple times
  in main window.

TEST PLAN
  Issue reproduces when systemd automounting is used.
  
  1. Setup automounted nfs mount like this in /etc/fstab:
  
    server_address:/remote_path /local_mountpoint nfs ro,nolock,x-systemd.automount 0 0
  
  2. force systemd to re-read fstab or reboot.
  
  **systemctl daemon-reload** and **systemctl restart remote-fs.target** should be enough
  
  3. Following command should return at least **2**:
  
  > $ grep /local_mountpoint /proc/self/mounts | wc -l
  
  First entry is autofs from systemd and second entry is actual nfs mount.
  
  4. Run Filelight
  5. Filelight should display only one /local_mountpoint entry.

REPOSITORY
  R352 Filelight

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

AFFECTED FILES
  src/summaryWidget.cpp

To: alnikiforov, mlaurent, sandsmark
Cc: kde-utils-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20200227/bda73603/attachment.html>


More information about the Kde-utils-devel mailing list