From owner-freebsd-current@FreeBSD.ORG Wed Apr 6 05:22:56 2005 Return-Path: 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 152B116A4CE; Wed, 6 Apr 2005 05:22:56 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A47E43D46; Wed, 6 Apr 2005 05:22:55 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j365MnKM005359; Wed, 6 Apr 2005 07:22:49 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 05 Apr 2005 23:55:27 BST." <20050405235414.D81173@fledge.watson.org> Date: Wed, 06 Apr 2005 07:22:49 +0200 Message-ID: <5358.1112764969@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@FreeBSD.org Subject: Re: Panic on mount with write-locked USB media (umass) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 06 Apr 2005 05:22:56 -0000 In message <20050405235414.D81173@fledge.watson.org>, Robert Watson writes: >> There are two ways that a filesystem correctly could handle a R/O media: >> >> 1. Fail with EROFS unless asked t mouned read-only >> >> 2. Silently downgrade th emount to read-only. >> >> I personally prefer the first because that way a script does not have to >> check if it got the mount it wanted or not. > >In general, I agree, but this will de-POLA the following command: > > mount -t cd9660 /dev/acd0 /cdrom Not really. The cd9660 filesystem can never be mounted R/W, it always mounts R/O by default so it will still DTRT. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.