2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2015-03-01 16:39:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2015-12-03 21:13:37 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2015-03-01 16:39:31 +01:00
|
|
|
#include "sd-bus.h"
|
|
|
|
|
2015-03-05 00:56:08 +01:00
|
|
|
/* Grow the /var/lib/machines directory after each 10MiB written */
|
|
|
|
#define GROW_INTERVAL_BYTES (UINT64_C(10) * UINT64_C(1024) * UINT64_C(1024))
|
|
|
|
|
2015-03-02 19:21:04 +01:00
|
|
|
int setup_machine_directory(uint64_t size, sd_bus_error *error);
|
2015-03-03 00:13:12 +01:00
|
|
|
int grow_machine_directory(void);
|