Keeps internal partitions like /snap mounts from cluttering up the overview
It's read-only, so you cannot really free up space there anyway.
Details
Details
- Reviewers
sandsmark elvisangelaccio sitter - Commits
- R352:839d1413bcd0: Ignore squashfs partitions
No more /snap stuff in Filelight overview
Diff Detail
Diff Detail
- Repository
- R352 Filelight
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I'd prefer something like
static const QSet<QByteArray> ignoreFS = { "tmpfs", "squashfs" }; for (const QStorageInfo &storage : QStorageInfo::mountedVolumes()) { if (!storage.isReady() || ignoreFS.contains(storage.fileSystemType())) { continue; }
It's how we do it in the listers as well I think, and it's easier to extend in the future that way.
Comment Actions
I wonder why tmpfs is listed here. Cleaning up /tmp may actually be useful. devtmpfs is indeed something that should be filtered. iso9660 would be another good candidate. And perhaps bind mounts.