On Tue, Jan 24, 2017 at 03:16:45PM +0000, Richard W.M. Jones wrote:
However we could add another API:
nbdkit_set_errno (int errno);
This allows the plugin to send the errno back to the core code
explicitly. It's effectively stored as a global in the core code.
What I'm really saying here is that at the moment (after your previous
patch series) we have an implicit channel where errno is passed from
the plugin to the core code. We should simply make that channel
explicit and controlled by the plugin.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top