Add comment about specifying "ro" mount option when

doing an update mount on a read-only file system.

Requested by:	yar
This commit is contained in:
rodrigc 2008-04-04 01:50:58 +00:00
parent 73796e923c
commit d698c6ef56

View File

@ -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);