Page MenuHomeFreeBSD

linux(4): Add AT_NO_AUTOMOUNT to statx.

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



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

rS FreeBSD src repository - subversion
Lint OK
No Unit Test Coverage
Build Status
Buildable 41020
Build 37909: 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 rG 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.