btrfs-progs/mkfs
Johannes Thumshirn e1d9e1e1a3 btrfs-progs: mkfs: check for minimal needed number of zones
In order to create a usable zoned filesystem a minimum of 5 zones is
needed:

- 2 zones for the 1st superblock
- 1 zone for the system block group
- 1 zone for a metadata block group
- 1 zone for a data block group

Some tests in fstests create a sized filesystem and depending on the zone
size of the underlying device, it may happen, that this filesystem is too
small to be used. It's better to not create a filesystem at all than to
create an unusable filesystem.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-05-12 12:38:44 +02:00
..
common.c btrfs-progs: mkfs: add fallback check for signature 2021-05-08 00:58:50 +02:00
common.h btrfs-progs: mkfs: move btrfs_make_root_dir from utils.c 2021-05-06 16:41:47 +02:00
main.c btrfs-progs: mkfs: check for minimal needed number of zones 2021-05-12 12:38:44 +02:00
Makefile btrfs-progs: build: add stub makefile to image and mkfs 2019-07-04 15:36:01 +02:00
rootdir.c btrfs-progs: build: remove incomplete android support 2021-05-06 16:41:47 +02:00
rootdir.h btrfs-progs: mkfs/rootdir: Fix memory leak in traverse_directory() 2018-02-14 16:31:19 +01:00