Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2000 16:52:59 -0500 (EST)
From:      Colin <cwass99@home.com>
To:        "Chad R. Larson" <chad@DCFinc.com>
Cc:        freebsd-stable@FreeBSD.ORG, drek@MonsterByMistake.Com
Subject:   Re: access floppy rw to lock system
Message-ID:  <XFMail.20000115165259.cwass99@home.com>
In-Reply-To: <200001140144.SAA07443@freeway.dcfinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 14-Jan-2000 Chad R. Larson wrote:
> 
> Well, I was protesting the logic of doing a read/write mount of read-only
> media.  Mount it R/O and there is no issue.
> 
> You wouldn't mount a CD-ROM read/write, would you?
> 
     Of course not ;)  My point was if you inserted the floppy with the intent
of writing to it (eg to create a set of boot disks to do another FreeBSD
install ;)) and forgot to check the location of the tab your next step will be
a reboot.

> And, it would have to be "unnoticed" by someone with root
> permissions, or it can't be mounted at all (or written to, either).
> 
     I didn't realize "root" access automagically bestowed an inability to make
mistakes ;)  I agree root needs to be paying a lot more attention than a normal
user, but as my kid so eloquently puts it, "stuff happens" ;)

> But I will concede that doing that approximately silly thing
> shouldn't hang the system.  I'd probably vote that the driver should
> test for write protect, and the mount(2) call should act as though
> "MT_RDONLY" had been specified.
> 
> Either that, or fail with a EPERM or ENODEV.
> 
     I guess, from this last bit, we basically agree that there is a problem
here, we just don't view it's importance the same ;)

cheers,
Colin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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