From owner-freebsd-hackers Thu Feb 8 21: 8:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (unknown [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 85FBB37B401 for ; Thu, 8 Feb 2001 21:07:55 -0800 (PST) Received: from columbus.rr.com (dhcp065-024-106-170.columbus.rr.com [65.24.106.170]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f1955RN14144 for ; Fri, 9 Feb 2001 00:05:28 -0500 (EST) Message-ID: <3A837A0A.DAB3520A@columbus.rr.com> Date: Fri, 09 Feb 2001 00:03:06 -0500 From: Kenny Drobnack Reply-To: supenguin@bigfoot.com X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.18 i586) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: mount checking for read-only media Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There's this little problem with FreeBSD that has been bugging me a bit for a while now. There have been a couple times I've tried to mount Zip disks or floppy drives in FreeBSD, and had the /etc/fstab set up to mount read/write, and didn't realize that I had write protect turned on. However, I didn't realize the write protect was turned on until I tried writing to the drive. This caused lots of hard write errors or some such thing, and the system eventual just said "hit any key to reboot". I guess some buffer somewhere got full and crashed the kernel. There's never any kernel dump, so I can't easily send debug messages. Is there some reason that no check is done to make sure the media is writable before writing to it? Is some system call to check the hardware to see if its physically writable? I figure there is. I want to start hacking at the kernel a bit, and it seems like something simple (comparitively) would be a good place to start. Up there on my wish list is getting a journaling filesystem ported to FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message