chiark / gitweb /
Use first partition in /proc/swaps for hibernation test
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Sep 2013 20:12:16 +0000 (15:12 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Sep 2013 20:44:38 +0000 (16:44 -0400)
commit9fb3675e7ef0c6b7a1780980e51492c44fd1faaf
treec8ce724cb92108a6963e0e9a5428ac2214a7b417
parent22f5f6281fc25f43a85938e9dad2480b2595c471
Use first partition in /proc/swaps for hibernation test

It seems that the kernel uses the first configured partition
for hibernation. If it is too full, hibernation will fail. Test
that directly.
src/core/swap.c
src/shared/sleep-config.c