[sheepdog] [PATCH] sheepdog: Fix misleading error messages in sd_snapshot_create()

Markus Armbruster armbru at redhat.com
Fri Feb 27 13:56:01 CET 2015


Markus Armbruster <armbru at redhat.com> writes:

> If do_sd_create() fails, it first reports the error returned, then
> reports a another one with strerror(errno).  errno is meaningless at
> that point.
>
> Report just one error combining the valid information from both
> messages.
>
> Reported-by: Eric Blake <eblake at redhat.com>
> Signed-off-by: Markus Armbruster <armbru at redhat.com>
> ---
> Applies on top of my "[PATCH v2 00/10] Clean up around
> error_get_pretty(), qerror_report_err()", but rebasing to master would
> be trivial.

Applies cleanly on master now.  Maintainers, please apply.



More information about the sheepdog mailing list