[Bug 297999] cam: inappropriate error handling for ZBC drives

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297999

--- Comment #1 from Robert Clausecker <[email protected]> ---
(In reply to Alan Somers from comment #0)

> As for errnos, we could use EMFILE for Insufficient Zone Resources and EACCES for "Zone is Offline".

I'd recommend ENFILE as EMFILE is about the number of file descriptors in the
process whereas ENFILE is more vaguely about a global number of files.  The
number of zones on a disk is not a matter of the current process, so that seems
more suitable.

I also feel like some of the errors associated with incorrect write pointers
might be a match for ESPIPE.  After all, you can only append to an append-only
zone, like with a fifo.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.