2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2016-02-16 20:05:15 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-03-08 09:41:50 +01:00
|
|
|
#include <linux/fiemap.h>
|
2018-03-08 14:17:33 +01:00
|
|
|
#include "time-util.h"
|
|
|
|
|
2018-03-08 09:41:50 +01:00
|
|
|
int read_fiemap(int fd, struct fiemap **ret);
|
2018-09-26 11:17:36 +02:00
|
|
|
int parse_sleep_config(const char *verb, bool *ret_allow, char ***ret_modes, char ***ret_states, usec_t *ret_delay);
|
2018-03-08 09:41:50 +01:00
|
|
|
int find_hibernate_location(char **device, char **type, size_t *size, size_t *used);
|
2013-05-04 18:31:28 +02:00
|
|
|
|
|
|
|
int can_sleep(const char *verb);
|
|
|
|
int can_sleep_disk(char **types);
|
|
|
|
int can_sleep_state(char **types);
|