Page MenuHomeFreeBSD

linux(4): Add AT_NO_AUTOMOUNT to statx.
ClosedPublic

Authored by dchagin on Aug 12 2021, 4:36 PM.

Details

Summary

Specific to Linux AT_NO_AUTOMOUNT flag tells the kernel to not automount the
terminal component of pathname if it is a directory that is an automount point.
As it is the default for FreeBSD silencly ignore this flag.

glibc-2.34 uses this flag in the stat64 system calls which is used by i386.

Test Plan

glibc tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 41023
Build 37912: arc lint + arc unit

Event Timeline

dchagin added a reviewer: Linux Emulation.
dchagin changed the repository for this revision from rS FreeBSD src repository - subversion to R10 FreeBSD src repository.

Maybe worth a comment in the code (the explanation in this review) about LINUX_AT_NO_AUTOMOUNT being the default on FreeBSD? Else it might be confusing that we claim it is a supported flag but do not do anything to handle it.

added an explanation about using the flag

add comment to the statx impl

This revision is now accepted and ready to land.Nov 13 2021, 2:35 PM
This revision was automatically updated to reflect the committed changes.