Panic on mount with write-locked USB media (umass)

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Apr 5 22:22:56 PDT 2005


In message <20050405235414.D81173 at 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 at 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.


More information about the freebsd-current mailing list