Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2001 22:58:14 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        supenguin@bigfoot.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: mount checking for read-only media 
Message-ID:  <200102090558.f195wEW01613@harmony.village.org>
In-Reply-To: Your message of "Fri, 09 Feb 2001 00:03:06 EST." <3A837A0A.DAB3520A@columbus.rr.com> 
References:  <3A837A0A.DAB3520A@columbus.rr.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <3A837A0A.DAB3520A@columbus.rr.com> Kenny Drobnack writes:
: 	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.

This is a driver bug.  The da driver, which deals with disks, doesn't
check to see if the media is writable or not before allowing r/w
mounts.  You could short circuit the panic by fixing this.

Fixing the panic might be harder...

Warner


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




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