1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
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);
16 
17 bool fs_can_online_shrink_and_grow(statfs_f_type_t magic);
18