From owner-cvs-all@FreeBSD.ORG Wed Apr 27 14:46:02 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87C7716A4CE; Wed, 27 Apr 2005 14:46:02 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7154B43D1F; Wed, 27 Apr 2005 14:46:02 +0000 (GMT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3REk2I0026655; Wed, 27 Apr 2005 14:46:02 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3REk2O9026654; Wed, 27 Apr 2005 14:46:02 GMT (envelope-from des) Message-Id: <200504271446.j3REk2O9026654@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 27 Apr 2005 14:46:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/nfsclient nfs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 14:46:02 -0000 des 2005-04-27 14:46:02 UTC FreeBSD src repository Modified files: sys/nfsclient nfs_vfsops.c Log: When NFS was converted to the new mount syscall, code was written that sets the MNT_RDONLY flag if the "ro" option was passed in from userland, and clears it otherwise. In the diskless case, the MNT_RDONLY flag is already set when this code is reached, but there are no mount options, so it was incorrectly cleared. Change the logic so the MNT_RDONLY flag is set if the "ro" option was specified, and left alone otherwise. Note that the NFS code will still happily let you mount a filesystem RW even if the server exports it RO. I'm not sure how to fix that. Revision Changes Path 1.173 +1 -3 src/sys/nfsclient/nfs_vfsops.c