Page MenuHomeFreeBSD

linux(4): Add AT_NO_AUTOMOUNT to statx.

Authored by dchagin on Aug 12 2021, 4:36 PM.
Referenced Files
Unknown Object (File)
May 7 2023, 4:10 PM
Unknown Object (File)
May 5 2023, 11:45 AM
Unknown Object (File)
Mar 29 2023, 12:10 AM
Unknown Object (File)
Mar 5 2023, 7:38 AM
Unknown Object (File)
Feb 15 2023, 9:51 PM
Unknown Object (File)
Feb 10 2023, 6:56 PM
Unknown Object (File)
Jan 5 2023, 2:14 PM
Unknown Object (File)
Dec 28 2022, 1:53 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

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

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.