From owner-freebsd-current@FreeBSD.ORG Tue Oct 24 19:09:57 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 814D716A40F for ; Tue, 24 Oct 2006 19:09:57 +0000 (UTC) (envelope-from michiel@boland.org) Received: from neerbosch.nijmegen.internl.net (neerbosch.nijmegen.internl.net [217.149.193.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5F9B43D46 for ; Tue, 24 Oct 2006 19:09:56 +0000 (GMT) (envelope-from michiel@boland.org) Received: from brakkenstein.nijmegen.internl.net by neerbosch.nijmegen.internl.net via brakkenstein.nijmegen.internl.net [217.149.193.41] with ESMTP for id k9OJ9t3g010900 (8.13.4/1.4); Tue, 24 Oct 2006 21:09:55 +0200 (MEST) Received: from localhost by brakkenstein.nijmegen.internl.net via mboland@localhost with ESMTP for id k9OJ9t7H017778 (8.13.2/2.02); Tue, 24 Oct 2006 21:09:55 +0200 (MEST) X-Authentication-Warning: brakkenstein.nijmegen.internl.net: mboland owned process doing -bs Date: Tue, 24 Oct 2006 21:09:55 +0200 (MEST) From: Michiel Boland To: freebsd-current@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: 'ro' option in fstab not recognized? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 19:09:57 -0000 Hi. I must be extremely stupid. I have this in my fstab /usr/local /usr/j/usr/local nullfs ro 0 0 but /usr/j/usr/local still appears to be mounted read-write. Oh wait, I guess this is also already covered by PR 100164. Line 197 of sys/mount/mount.c explicitly adds an option "noro". Looks to me like this makes it impossible to mount *any* file system read-only, except by explicitly passing flags to mount. Surely this is not what fstab was designed for? :)