]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/sleep/sleep.c
sleep: Add support for setting a disk offset when hibernating
authorMario Limonciello <mario.limonciello@dell.com>
Thu, 8 Mar 2018 08:41:50 +0000 (02:41 -0600)
committerMario Limonciello <mario.limonciello@dell.com>
Mon, 9 Apr 2018 18:17:56 +0000 (13:17 -0500)
commit17c40b3a8fbfb797110c88d749bd5d37e6ee6e3c
tree70376ccc4a6c11a49c52fb0944001434f05f9a9f
parentc75436067f4b392ecf161e123279720dc5c3b33a
sleep: Add support for setting a disk offset when hibernating

The Linux kernel is adding support for configuring the offset
into a disk.  This allows swapfiles to be more usable as users
will no longer need to set the offset on their kernel command
line.

Use this API in systemd when hibernating as well.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
src/shared/sleep-config.c
src/shared/sleep-config.h
src/sleep/sleep.c
src/test/test-sleep.c