chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit5a59b1ebb02430ccba5b51cc00075c28fc720d2f
tree574f60027a1c359bedbe8e1bc9d1294958c62f7c
parent91dc346602da427c43b26876831c8690505d2e79
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