]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Don't report OOM error on failure of glfs_new
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Feb 2021 09:22:52 +0000 (10:22 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Mar 2021 08:50:20 +0000 (09:50 +0100)
commit5591ba28896efc33fb936a133c70ddc1f8577f88
treec0b57ad9f05da95d0a952f8c3066d279807ff10e
parent0af84a81fcd5e499ec720d5748324fe631d1bc24
storage: Don't report OOM error on failure of glfs_new

OOM isn't the only failure glfs_new can encounter. Report an error which
might give more insight. libgfapi seems to be setting errno but
reporting a system error migt be misleading.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/storage/storage_backend_gluster.c
src/storage_file/storage_file_backend_gluster.c