Skip to content

A setting for "Show directory sizes" to ignore mount points #5014

@birdie-github

Description

@birdie-github

Is there an existing request for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Currently, Show directory sizes includes the sizes of files found in mounted filesystems.

In practice, this often produces unintuitive or misleading results (e.g. double-counting via pulling in unrelated filesystems via mount points). Most users expect a directory size to reflect the contents physically belonging to that directory tree.

It would be useful to have an option to exclude mount points from size calculation.

Hard links are a special case: excluding them reliably would require global inode tracking, and double-counting is effectively unavoidable without that context. Keeping hard links included is therefore reasonable.

Describe the solution you'd like

An option in Options -> Configuration to do exactly that.

Akin to One filesystem only or Ignore mount points or Do not descend into mount points

Describe alternatives you've considered

None.

Additional context

This would also align more closely with du -x / --one-file-system semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progress

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions