Date: Fri, 1 Apr 2011 08:51:25 -0600 From: Warner Losh <imp@bsdimp.com> To: 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: <F98114A0-0C00-46EF-BD0C-E48F97FFF3E1@bsdimp.com> In-Reply-To: <4D95E162.40605@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
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 drivers 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) after EDAVE. Warnerhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F98114A0-0C00-46EF-BD0C-E48F97FFF3E1>
