summaryrefslogtreecommitdiff
path: root/src/shared/machine-pool.h
blob: f76c825f85d16b13a0be2e1234879796e75ec00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

/***
  Copyright 2015 Lennart Poettering
***/

#include <stdint.h>

#include "sd-bus.h"

/* Grow the /var/lib/machines directory after each 10MiB written */
#define GROW_INTERVAL_BYTES (UINT64_C(10) * UINT64_C(1024) * UINT64_C(1024))

int setup_machine_directory(uint64_t size, sd_bus_error *error);
int grow_machine_directory(void);