]> git.ipfire.org Git - thirdparty/systemd.git/commit
hibernate-util,logind: emit a clear error if the specified resume dev is missing
authorMike Yuan <me@yhndnzj.com>
Wed, 8 May 2024 04:42:40 +0000 (12:42 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 8 May 2024 04:54:13 +0000 (12:54 +0800)
commit40eb83a8fe535897b17760988849fa061a8f4929
tree894d073660a57e2904f87eaf0fd04412ff77d229
parent3473c842fa4d41d873acd076f227a80c69d44450
hibernate-util,logind: emit a clear error if the specified resume dev is missing

Currently, SLEEP_NOT_ENOUGH_SWAP_SPACE (ENOSPC) is returned
on all sorts of error conditions. But one important case
that's worth differentiating from that is when the resume device
is manually specified yet missing.

Closes #32644
src/login/logind-dbus.c
src/shared/hibernate-util.c
src/shared/sleep-config.c
src/shared/sleep-config.h