Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sylvestre
Copy link
Contributor

Only read mount information when needed (%m directive) and handle gracefully when /proc/self/mountinfo is not accessible, fixing stat failures in chroot environments without /proc mounted.

see https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2133797

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/follow-name (passes in this run but fails in the 'main' branch)


let mount_list = self.mount_list.get_or_init(|| {
// Try to populate mount list, but don't fail if we can't
Self::populate_mount_list().ok()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if we don't fail it appears that the GNU implementation provides a warning:

sudo unshare --mount sh -c 'mount -t tmpfs none /proc; stat --format="%m" /tmp'

I'm getting: "stat: cannot read table of mounted file systems: No such file or directory"

Only read mount information when needed (%m directive) and handle
gracefully when /proc/self/mountinfo is not accessible, fixing
stat failures in chroot environments without /proc mounted.

see https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2133797
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/tail/follow-name (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)

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.

2 participants