]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: ENODEV is not the only error the kernel returns if a device is not there
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 17:47:41 +0000 (18:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2024 13:03:09 +0000 (14:03 +0100)
commitfdc7d50ba40a92348d1ea31dfeda4ee4cc804046
tree453ca3ad991b6ed8f31a8b6288b675cca3e56b79
parentc7c6b6f28c2c006c059d40d5d6a7032f42ad8252
vmspawn: ENODEV is not the only error the kernel returns if a device is not there

Let's use ERRNO_IS_DEVICE_ABSENT() to cover all cases.

(And while we are at it also use ERRNO_IS_PRIVILEGE() where appropriate)
src/vmspawn/vmspawn-util.c