]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Report error when changing pipe size fails
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Mar 2022 11:29:19 +0000 (13:29 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Mar 2022 13:04:18 +0000 (15:04 +0200)
commitcd7acb33231837c4bcf6ccbd7d451e145b5f3667
tree80439c7aa21e90192755b688c491f2f482620778
parent2ddf220718dfd68b94bc4ef67bf88ea0c8aad4d2
virfile: Report error when changing pipe size fails

When changing the size of pipe that virFileWrapperFdNew() creates
we start at 1MiB and if that fails because it's above the system
wide limit we get EPERM and continue with half of the size.

However, we might get another error in which case we should
report proper system error and return failure from
virFileWrapperFdNew().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virfile.c