[PATCH 2/2] Drivers: hv: vmbus: Display nothing in sysfs if monitor_allocated not set

Stephen Hemminger stephen at networkplumber.org
Fri Feb 8 22:32:09 UTC 2019


On Fri, 8 Feb 2019 05:01:12 -0500
Kimberly Brown <kimbrownkd at gmail.com> wrote:

You are right, the current behavior is broken.
It would be good to add a description of under what conditions
monitor is not used. Is this some part of a project emulating
Hyper-V?


> +
> +	if (!hv_dev->channel->offermsg.monitor_allocated)
> +		return sprintf(buf, "\n");

If monitor is not used, why not return an error instead of empty
data. Any program (or user) would have to handle that already.


More information about the devel mailing list