Linux: add ST_NOSYMFOLLOW
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
Linux v5.10 added a mount option MS_NOSYMFOLLOW, which was added to
glibc in commit 0ca21427d950755b.
Add the corresponding statfs/statvfs flag bit, ST_NOSYMFOLLOW.
---
sysdeps/unix/sysv/linux/bits/statvfs.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
Kir Kolyshkin <kolyshkin@gmail.com> writes:
> - ST_RELATIME = 4096 /* Update atime relative to mtime/ctime. */
> + ST_RELATIME = 4096, /* Update atime relative to mtime/ctime. */
Comma, ok.
> # define ST_RELATIME ST_RELATIME
> + ST_NOSYMFOLLOW = 8192, /* Do not follow symlinks. */
> +# define ST_NOSYMFOLLOW ST_NOSYMFOLLOW
Matches the kernel, Ok.
LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>
Do you need someone to commit this for you?
On Fri, 22 Sep 2023, DJ Delorie wrote:
> Kir Kolyshkin <kolyshkin@gmail.com> writes:
> > - ST_RELATIME = 4096 /* Update atime relative to mtime/ctime. */
> > + ST_RELATIME = 4096, /* Update atime relative to mtime/ctime. */
>
> Comma, ok.
>
> > # define ST_RELATIME ST_RELATIME
> > + ST_NOSYMFOLLOW = 8192, /* Do not follow symlinks. */
> > +# define ST_NOSYMFOLLOW ST_NOSYMFOLLOW
>
> Matches the kernel, Ok.
It adds a trailing enum comma (invalid in C prior to C99 and C++ prior to C++11)
while it was correctly omitted before.
Alexander
@@ -105,7 +105,9 @@ enum
# define ST_NOATIME ST_NOATIME
ST_NODIRATIME = 2048, /* Do not update directory access times. */
# define ST_NODIRATIME ST_NODIRATIME
- ST_RELATIME = 4096 /* Update atime relative to mtime/ctime. */
+ ST_RELATIME = 4096, /* Update atime relative to mtime/ctime. */
# define ST_RELATIME ST_RELATIME
+ ST_NOSYMFOLLOW = 8192, /* Do not follow symlinks. */
+# define ST_NOSYMFOLLOW ST_NOSYMFOLLOW
#endif /* Use GNU. */
};