]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessBuildDestroyHugepagesPath: Don't warn on destroying non-existent path
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Jun 2017 15:55:21 +0000 (17:55 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 21 Jun 2017 10:32:53 +0000 (12:32 +0200)
commite8589963bccbd23c2b2df973406cbbde27d14f04
tree8a4f61dfce908adc667a34e145255ae551f87ed5
parentff7bae6e4fb74a52239d53af3672900c69801508
qemuProcessBuildDestroyHugepagesPath: Don't warn on destroying non-existent path

This function is called unconditionally from qemuProcessStop to
make sure we leave no dangling dirs behind. However, whenever the
directory we want to rmdir() is not there (e.g. because it hasn't
been created in the first place because domain doesn't use
hugepages at all), we produce a warning like this:

2017-06-20 15:58:23.615+0000: 32638: warning :
qemuProcessBuildDestroyHugepagesPath:3363 : Unable to remove
hugepage path: /dev/hugepages/libvirt/qemu/1-instance-00000001
(errno=2)

Fix this by not producing the warning on ENOENT.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c