Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Apr 2005 07:22:49 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: Panic on mount with write-locked USB media (umass) 
Message-ID:  <5358.1112764969@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 05 Apr 2005 23:55:27 BST." <20050405235414.D81173@fledge.watson.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5358.1112764969>