Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Apr 2011 17:29:54 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        FreeBSD Arch <freebsd-arch@FreeBSD.org>, FreeBSD Hackers <freebsd-hackers@FreeBSD.org>
Subject:   looking for error codes
Message-ID:  <4D95E162.40605@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

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).
-- 
Andriy Gapon



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