Date: Fri, 1 Apr 2011 11:04:38 -0400 From: Andrew Duane <aduane@juniper.net> To: Warner Losh <imp@bsdimp.com>, Andriy Gapon <avg@freebsd.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, FreeBSD Arch <freebsd-arch@freebsd.org> Subject: RE: looking for error codes Message-ID: <AC6674AB7BC78549BB231821ABF7A9AEB52F1950BB@EMBX01-WF.jnpr.net> In-Reply-To: <F98114A0-0C00-46EF-BD0C-E48F97FFF3E1@bsdimp.com> References: <4D95E162.40605@FreeBSD.org>, <F98114A0-0C00-46EF-BD0C-E48F97FFF3E1@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
AFAIK, FreeBSD does not really detect read-only media. This was something I= had to add as a small project here at work, and was considering cleaning u= p to try to get into CURRENT. If there's a real need for it, I could speed = that up. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 ________________________________________ From: owner-freebsd-hackers@freebsd.org [owner-freebsd-hackers@freebsd.org]= On Behalf Of Warner Losh [imp@bsdimp.com] Sent: Friday, April 01, 2011 10:51 AM To: Andriy Gapon Cc: FreeBSD Hackers; FreeBSD Arch Subject: Re: looking for error codes On Apr 1, 2011, at 8:29 AM, Andriy Gapon wrote: > > I am looking for error codes that would unambiguously signal that a disk = drive has > readonly or write-protected media and that disk drive has no media at the= moment. > I foresee these error codes being used mostly between disk peripheral dri= vers and > filesystem drivers. > > I will appreciate your suggestions. > > P.S. > I see that Linux uses EROFS and ENOMEDIUM for these purposes. > I am not sure about EROFS in this role. > And we don't have ENOMEDIUM (nor EMEDIUMTYPE). Maybe we could add ENOMEDIA for that (spelled however Linux spells it) afte= r EDAVE. Warner _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC6674AB7BC78549BB231821ABF7A9AEB52F1950BB>