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 5b8c191c8a
commit 8707d40ad6

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;
/*