Skip to content

[Upstream PR] fix: don't call statfs on autofs mounts #60

Description

@victorbash400

Imported from upstream pull request muesli#359: muesli#359

Original author: @kreudom
Original state: OPEN
Original labels: none
Original assignees: none


Calling statfs on autofs mounts will trigger a filesystem mount. This can hang duf (especially when mounting network filesystems) and erroneously assign the statfs results of the mounted filesystem to the autofs entry.

I also set the Statfs_t.Type field manually, so that autofs is correctly identified as a special filesystem.

Fixes muesli#250

Feels a bit hacky but I can't think of a better solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream-importCopied from the upstream repository.upstream-prCopied from an upstream pull request.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions