From owner-freebsd-stable Thu Jan 13 18:47: 4 2000 Delivered-To: freebsd-stable@freebsd.org Received: from workhorse.iMach.com (workhorse.iMach.com [206.127.77.89]) by hub.freebsd.org (Postfix) with ESMTP id BFB271505E for ; Thu, 13 Jan 2000 18:47:01 -0800 (PST) (envelope-from forrestc@workhorse.iMach.com) Received: from localhost (forrestc@localhost) by workhorse.iMach.com (8.9.3/8.9.3) with SMTP id TAA03994; Thu, 13 Jan 2000 19:44:20 -0700 (MST) Date: Thu, 13 Jan 2000 19:44:20 -0700 (MST) From: "Forrest W. Christian" To: "Chad R. Larson" Cc: Colin , drek@MonsterByMistake.Com, freebsd-stable@FreeBSD.ORG Subject: Re: access floppy rw to lock system In-Reply-To: <200001140144.SAA07443@freeway.dcfinc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 13 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. > 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 don't know about you, but I'm not sure how many times I've tried to write to a write-protected disk, or in other words, didn't realize the disk was write protected. It's just not one of the things I normally check when I put a disk in a drive.B > 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. Exactly. If it's read-only media, it should fail when being mounted read-write, or default to ro. - Forrest W. Christian (forrestc@imach.com) KD7EHZ ---------------------------------------------------------------------- iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com Solutions for your high-tech problems. (406)-442-6648 ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message