From 1d6523633e7f896942428aeb360c0ce7e9bbac37 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 4 Feb 2015 12:33:29 +0100 Subject: [PATCH] statfs.2: Document the 'f_flags' field added in Linux 2.6.36 Reported-by: Jan Chaloupka Signed-off-by: Michael Kerrisk --- man2/statfs.2 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/man2/statfs.2 b/man2/statfs.2 index 49b19a04c..208b045ae 100644 --- a/man2/statfs.2 +++ b/man2/statfs.2 @@ -65,6 +65,8 @@ struct statfs { fsid_t f_fsid; /* Filesystem ID */ __SWORD_TYPE f_namelen; /* Maximum length of filenames */ __SWORD_TYPE f_frsize; /* Fragment size (since Linux 2.6) */ + __SWORD_TYPE f_flags; /* Mount flags of filesystem + (since Linux 2.6.36) */ /* Plus additional padding bytes reserved for future use */ }; @@ -145,6 +147,48 @@ Filesystem types: Most of these MAGIC constants are defined in .IR /usr/include/linux/magic.h , and some are hardcoded in kernel sources. + +The +.IR f_flags +is a bit mask indicating mount options for the file system. +It contains zero or more of the following bits: +.\" XXX Keep this list in sync with statvfs(3) +.TP +.B ST_MANDLOCK +Mandatory locking is permitted on the filesystem (see +.BR fcntl (2)). +.TP +.B ST_NOATIME +Do not update access times; see +.BR mount (2). +.TP +.B ST_NODEV +Disallow access to device special files on this filesystem. +.TP +.B ST_NODIRATIME +Do not update directory access times; see +.BR mount (2). +.TP +.B ST_NOEXEC +Execution of programs is disallowed on this filesystem. +.TP +.B ST_NOSUID +The set-user-ID and set-group-ID bits are ignored by +.BR exec (3) +for executable files on this filesystem +.TP +.B ST_RDONLY +This filesystem is mounted read-only. +.TP +.B ST_RELATIME +Update atime relative to mtime/ctime; see +.BR mount (2). +.TP +.B ST_SYNCHRONOUS +Writes are synched to the filesystem immediately (see the description of +.B O_SYNC +in +.BR open (2)). .PP Nobody knows what .I f_fsid