src/shared/resize-fs.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "shared-forward.h" |
| 5 | #include "stat-util.h" |
| 6 | |
| 7 | int resize_fs(int fd, uint64_t sz, uint64_t *ret_size); |
| 8 | |
| 9 | #define BTRFS_MINIMAL_SIZE (256U*U64_MB) |
| 10 | #define XFS_MINIMAL_SIZE (300U*U64_MB) |
| 11 | #define EXT4_MINIMAL_SIZE (32U*U64_MB) |
| 12 | |
| 13 | uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic); |
| 14 | uint64_t minimal_size_by_fs_name(const char *name); |
| 15 | |
| 16 | bool fs_can_online_shrink_and_grow(statfs_f_type_t magic); |