Ugh. Previous commit got the logic exactly backward.

Submitted by:	bland
Pointy hat to:	des
This commit is contained in:
des 2005-05-17 18:23:03 +00:00
parent f9c8ec5a2d
commit 0bbbcadeb1

View File

@ -519,9 +519,9 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp)
* flag is already clear, or this is a root mount and it was set
* intentionally at some previous point.
*/
if (vfs_getopt(mp->mnt_optnew, "ro", NULL, NULL) != 0)
if (vfs_getopt(mp->mnt_optnew, "ro", NULL, NULL) == 0)
mp->mnt_flag |= MNT_RDONLY;
else if (!(mp->mnt_flag & MNT_UPDATE))
else if (mp->mnt_flag & MNT_UPDATE)
mp->mnt_flag &= ~MNT_RDONLY;
/*