mirror of https://github.com/mkerrisk/man-pages
statfs.2: Document the 'f_flags' field added in Linux 2.6.36
Reported-by: Jan Chaloupka <jchaloup@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
22795e81bb
commit
1d6523633e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue