1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.

* sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
	Handle relatime mount option.
This commit is contained in:
Ulrich Drepper
2006-12-14 05:41:07 +00:00
parent 1e88bd0f1b
commit 1cc444baba
3 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1998-2003, 2004, 2005 Free Software Foundation, Inc.
/* Copyright (C) 1998-2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@ -156,6 +156,8 @@ __statvfs_getflags (const char *name, int fstype, struct stat64 *st)
result |= ST_NOATIME;
else if (strcmp (opt, "nodiratime") == 0)
result |= ST_NODIRATIME;
else if (strcmp (opt, "relatime") == 0)
result |= ST_RELATIME;
/* We can stop looking for more entries. */
success = true;