432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering#pragma once
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering/***
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering This file is part of systemd.
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering Copyright 2015 Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering systemd is free software; you can redistribute it and/or modify it
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering under the terms of the GNU Lesser General Public License as published by
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering (at your option) any later version.
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering systemd is distributed in the hope that it will be useful, but
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering Lesser General Public License for more details.
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering You should have received a copy of the GNU Lesser General Public License
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering***/
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
a8fbdf5424be099ba1b2b1ec261c02b8759d6b0cThomas Hindoe Paaboel Andersen#include <stdint.h>
a8fbdf5424be099ba1b2b1ec261c02b8759d6b0cThomas Hindoe Paaboel Andersen
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering#include "sd-bus.h"
432cea008720480f6eaae7e75e6ad255e91fe2b4Lennart Poettering
b6e676ce41508e2aeea22202fc8f234126177f52Lennart Poettering/* Grow the /var/lib/machines directory after each 10MiB written */
b6e676ce41508e2aeea22202fc8f234126177f52Lennart Poettering#define GROW_INTERVAL_BYTES (UINT64_C(10) * UINT64_C(1024) * UINT64_C(1024))
b6e676ce41508e2aeea22202fc8f234126177f52Lennart Poettering
4cee5eede280b7fd48c18a1942616c4ac896a554Lennart Poetteringint setup_machine_directory(uint64_t size, sd_bus_error *error);
26166c88e0b47b83972f32b5057ecbffe06bf904Lennart Poetteringint grow_machine_directory(void);