From owner-freebsd-stable@FreeBSD.ORG Fri Jul 15 15:41:30 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42BBE16A41C for ; Fri, 15 Jul 2005 15:41:30 +0000 (GMT) (envelope-from nakal@nurfuerspam.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 736E243D45 for ; Fri, 15 Jul 2005 15:41:29 +0000 (GMT) (envelope-from nakal@nurfuerspam.de) Received: (qmail invoked by alias); 15 Jul 2005 15:41:27 -0000 Received: from p5090DCED.dip.t-dialin.net (EHLO klotz.local) [80.144.220.237] by mail.gmx.net (mp031) with SMTP; 15 Jul 2005 17:41:27 +0200 X-Authenticated: #989277 Received: from [192.168.0.2] (booky.local [192.168.0.2]) by klotz.local (8.13.3/8.13.3) with ESMTP id j6FFf8ED002364 for ; Fri, 15 Jul 2005 17:41:10 +0200 (CEST) (envelope-from nakal@nurfuerspam.de) Message-ID: <42D7D91B.3090701@nurfuerspam.de> Date: Fri, 15 Jul 2005 17:41:15 +0200 From: Martin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Read-only medium/device detection X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 15:41:30 -0000 Hi, when I mount a device (or medium) which is read-only without the -r option, I get lots of troubles when shutting down later. Syncer does not write all vnodes/blocks to disk. This happened to me with a write protected floppy disk (-t msdos) and a CD-R (-t ufs). It seems to me that read-only state of a file system is being initially setup according to the type of the file system. Wouldn't it be more appropriate to detect the medium/device capabilities to setup it read-only automatically if needed? Martin