]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/resize-fs.h
Merge pull request #14592 from keszybz/simplifications
[thirdparty/systemd.git] / src / shared / resize-fs.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <inttypes.h>
5
6 #include "stat-util.h"
7
8 int resize_fs(int fd, uint64_t sz, uint64_t *ret_size);
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
14 uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic);
15 uint64_t minimal_size_by_fs_name(const char *str);