Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2001 18:13:42 +0900
From:      non@ever.sanda.gr.jp
To:        supenguin@bigfoot.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: mount checking for read-only media
Message-ID:  <20010209181342S.non@ever.sanda.gr.jp>
In-Reply-To: <3A837A0A.DAB3520A@columbus.rr.com>
References:  <3A837A0A.DAB3520A@columbus.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Kenny Drobnack <kdrobnac@columbus.rr.com>
Date: Fri, 09 Feb 2001 00:03:06 -0500
> 	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.

It's not system call but `od' driver does check if the medium is
writable or not. It returns EACCESS when the mount option is -rw and
the medium is read-only. `od' is drived from `da' so quick hack will
do the trick.

ftp://daemon.jp.FreeBSD.org/pub/FreeBSD-jp/OD/

// Noriaki Mitsunaga //


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?20010209181342S.non>