]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/resize-fs.h
json: add helpers for dealing with id128 + strv
[thirdparty/systemd.git] / src / shared / resize-fs.h
CommitLineData
28937bcc
LP
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#include <inttypes.h>
5
6#include "stat-util.h"
7
d6f1e660 8int resize_fs(int fd, uint64_t sz, uint64_t *ret_size);
28937bcc
LP
9
10#define BTRFS_MINIMAL_SIZE (256U*1024U*1024U)
11#define XFS_MINIMAL_SIZE (14U*1024U*1024U)
12#define EXT4_MINIMAL_SIZE (1024U*1024U)
13
14uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic);
15uint64_t minimal_size_by_fs_name(const char *str);