Skip to content

fix: don't call statfs on autofs mounts#359

Open
kreudom wants to merge 1 commit intomuesli:masterfrom
kreudom:autofs-nostat
Open

fix: don't call statfs on autofs mounts#359
kreudom wants to merge 1 commit intomuesli:masterfrom
kreudom:autofs-nostat

Conversation

@kreudom
Copy link
Copy Markdown

@kreudom kreudom commented Feb 13, 2026

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 #250

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

Calling statfs on autofs mounts will trigger a filesystem mount. This
can hang duf and erroneously assign stats of the mounted filesystem
to the autofs entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

detect and ignore unmounted systemd automount.

1 participant