diff options
author | Zach Smith <z@zxmth.us> | 2019-07-14 20:01:20 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-29 12:59:17 +0200 |
commit | 88bc86fcf895da0d51ddaf93d17b4280f4e60d74 (patch) | |
tree | e1ff1dde5f76a8476de739c852f89d01d5ec79bd /src/shared/sleep-config.h | |
parent | a18a3aacd34643be46ed91f6c3f2971d01bfbc5f (diff) | |
download | systemd-88bc86fcf895da0d51ddaf93d17b4280f4e60d74.tar.gz |
systemd-sleep: use swaps in priority order
In situations where hibernation is requested but resume= and
resume_offset= kernel parameters are not configured, systemd
will attempt to locate a suitable swap location by inspecting
/proc/swaps. This change will use the first suitable swap with
the highest configured priority.
Diffstat (limited to 'src/shared/sleep-config.h')
-rw-r--r-- | src/shared/sleep-config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.h b/src/shared/sleep-config.h index 965fde93a2..c1cbf43326 100644 --- a/src/shared/sleep-config.h +++ b/src/shared/sleep-config.h @@ -27,7 +27,7 @@ int sleep_settings(const char *verb, const SleepConfig *sleep_config, bool *ret_ int read_fiemap(int fd, struct fiemap **ret); int parse_sleep_config(SleepConfig **sleep_config); -int find_hibernate_location(char **device, char **type, size_t *size, size_t *used); +int find_hibernate_location(char **device, char **type, uint64_t *size, uint64_t *used); int can_sleep(const char *verb); int can_sleep_disk(char **types); |