summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2008-04-04 01:50:58 +0000
committerrodrigc <rodrigc@FreeBSD.org>2008-04-04 01:50:58 +0000
commitd698c6ef567a3b96c01ea7adff77c79aaae7889a (patch)
treea49ec5ec5de2e27031bfe939a090557f48bb281b /sbin/fsck_ffs
parent73796e923cfa788cc9ed7181d3a182388e3b466d (diff)
downloadFreeBSD-src-d698c6ef567a3b96c01ea7adff77c79aaae7889a.zip
FreeBSD-src-d698c6ef567a3b96c01ea7adff77c79aaae7889a.tar.gz
Add comment about specifying "ro" mount option when
doing an update mount on a read-only file system. Requested by: yar
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index 1e6f370..f24d49b 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -541,6 +541,10 @@ chkdoreload(struct statfs *mntp)
build_iovec(&iov, &iovlen, "errmsg", errmsg,
sizeof(errmsg));
build_iovec(&iov, &iovlen, "update", NULL, 0);
+ /*
+ * XX: We need the following line until we clean up
+ * nmount parsing of root mounts and NFS root mounts.
+ */
build_iovec(&iov, &iovlen, "ro", NULL, 0);
if (nmount(iov, iovlen, fflags) == 0) {
return (0);
OpenPOWER on IntegriCloud