summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-15 08:39:37 +0000
committerdg <dg@FreeBSD.org>1995-05-15 08:39:37 +0000
commit138edd5273d35e08da6e845209e7dd80fe77924c (patch)
tree82764c969eb66004d43f1587e1a92f6384536acb /sbin
parent4c12c11b834683a92600a2ef20fabca71b3448ef (diff)
downloadFreeBSD-src-138edd5273d35e08da6e845209e7dd80fe77924c.zip
FreeBSD-src-138edd5273d35e08da6e845209e7dd80fe77924c.tar.gz
Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting or R/W upgrading filesystems that are dirty unless "-f" (force) option is used with mount. /etc/rc has been modified to abort the startup if one or more non-nfs partitions fail to mount. Reviewed by: Poul-Henning Kamp, Rod Grimes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.87
-rw-r--r--sbin/mount_ifs/mount.87
2 files changed, 10 insertions, 4 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index 508ca70..7be6e13 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -84,7 +84,9 @@ determine what the
command is trying to do.
.It Fl f
Forces the revocation of write access when trying to downgrade
-a filesystem mount status from read-write to read-only.
+a filesystem mount status from read-write to read-only. Also
+forces the R/W mount of an unclean filesystem (dangerous; use with
+caution).
.It Fl o
Options are specified with a
.Fl o
@@ -104,7 +106,8 @@ system should your system crash.
The same as
.Fl f ;
forces the revocation of write access when trying to downgrade
-a filesystem mount status from read-write to read-only.
+a filesystem mount status from read-write to read-only. Also
+forces the R/W mount of an unclean filesystem (dangerous; use with caution).
.It nodev
Do not interpret character or block special devices on the file system.
This option is useful for a server that has file systems containing
diff --git a/sbin/mount_ifs/mount.8 b/sbin/mount_ifs/mount.8
index 508ca70..7be6e13 100644
--- a/sbin/mount_ifs/mount.8
+++ b/sbin/mount_ifs/mount.8
@@ -84,7 +84,9 @@ determine what the
command is trying to do.
.It Fl f
Forces the revocation of write access when trying to downgrade
-a filesystem mount status from read-write to read-only.
+a filesystem mount status from read-write to read-only. Also
+forces the R/W mount of an unclean filesystem (dangerous; use with
+caution).
.It Fl o
Options are specified with a
.Fl o
@@ -104,7 +106,8 @@ system should your system crash.
The same as
.Fl f ;
forces the revocation of write access when trying to downgrade
-a filesystem mount status from read-write to read-only.
+a filesystem mount status from read-write to read-only. Also
+forces the R/W mount of an unclean filesystem (dangerous; use with caution).
.It nodev
Do not interpret character or block special devices on the file system.
This option is useful for a server that has file systems containing
OpenPOWER on IntegriCloud