From 464bb99400f9a1a1bde594c290bd3ebb1a3722be Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Nov 2008 13:29:44 +0100 Subject: [PATCH] mount: create separate section for fs-independent options in mount.8 Signed-off-by: Karel Zak --- mount/mount.8 | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/mount/mount.8 b/mount/mount.8 index 1d5b5b6f..f35b8c02 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -311,11 +311,11 @@ but some information is lost that way, and in particular working with the loop device will be less convenient, and using the "user" option will fail. -.SH OPTIONS -The full set of options used by an invocation of +.SH COMMAND LINE OPTIONS +The full set of mount options used by an invocation of .B mount is determined by first extracting the -options for the file system from the +mount options for the file system from the .I fstab table, then applying any options specified by the .B \-o @@ -323,7 +323,7 @@ argument, and finally applying a .BR \-r " or " \-w option, when present. -Options available for the +Command line options available for the .B mount command: .TP @@ -592,7 +592,32 @@ that are either ext2 or have the _netdev option specified. .B \-o Options are specified with a .B \-o -flag followed by a comma separated string of options. +flag followed by a comma separated string of options. For example: +.RS +.RS +.B "mount LABEL=mydisk \-o noatime,nouser" +.RE + +For more details, see +.B FILESYSTEM INDEPENDENT MOUNT OPTIONS +and +.B FILESYSTEM SPECIFIC MOUNT OPTIONS +sections. +.RE +.TP +.B \-B, \-\-bind +Remount a subtree somewhere else (so that its contents are available +in both places). See above. +.TP +.B \-R, \-\-rbind +Remount a subtree and all possible submounts somewhere else (so that its +contents are available in both places). See above. +.TP +.B \-M, \-\-move +Move a subtree to some other place. See above. +.RE + +.SH FILESYSTEM INDEPENDENT MOUNT OPTIONS Some of these options are only useful when they appear in the .I /etc/fstab file. @@ -605,7 +630,7 @@ The following options apply to any file system that is being mounted (but not every file system actually honors them - e.g., the .B sync option today has effect only for ext2, ext3, fat, vfat and ufs): -.RS + .TP .B async All I/O to the file system should be done asynchronously. (See also the @@ -670,7 +695,7 @@ You can set the default security context for unlabeled files using option. This overrides the value set for unlabeled files in the policy and requires a file system that supports xattr labeling. -For more details see +For more details, see .BR selinux (8) .TP @@ -818,18 +843,6 @@ This option implies the options .BR noexec ", " nosuid ", and " nodev (unless overridden by subsequent options, as in the option line .BR users,exec,dev,suid ). -.RE -.TP -.B \-B, \-\-bind -Remount a subtree somewhere else (so that its contents are available -in both places). See above. -.TP -.B \-R, \-\-rbind -Remount a subtree and all possible submounts somewhere else (so that its -contents are available in both places). See above. -.TP -.B \-M, \-\-move -Move a subtree to some other place. See above. .SH "FILESYSTEM SPECIFIC MOUNT OPTIONS" The following options apply only to certain file systems. -- 2.39.5