]>
Commit | Line | Data |
---|---|---|
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 | 8 | int 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 | ||
14 | uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic); | |
15 | uint64_t minimal_size_by_fs_name(const char *str); |