summary refs log tree commit diff
path: root/fs/btrfs/tests/btrfs-tests.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2022-05-13 08:52:52 -0700
committerDavid Sterba <dsterba@suse.com>2022-05-17 20:15:25 +0200
commit0a05fafe9def0d9f0fbef3dfc8094925af9e3185 (patch)
treed469287ad5246c01ac9311a5e458d58a5d4485af /fs/btrfs/tests/btrfs-tests.c
parentd8101a0c8a318d1c25f333f44523571806b3fb05 (diff)
downloadlinux-0a05fafe9def0d9f0fbef3dfc8094925af9e3185.tar.gz
btrfs: zoned: introduce a minimal zone size 4M and reject mount
Zoned devices are expected to have zone sizes in the range of 1-2GB for
ZNS SSDs and SMR HDDs have zone sizes of 256MB, so there is no need to
allow arbitrarily small zone sizes on btrfs.

But for testing purposes with emulated devices it is sometimes desirable
to create devices with as small as 4MB zone size to uncover errors.

So use 4MB as the smallest possible zone size and reject mounts of devices
with a smaller zone size.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.c')
0 files changed, 0 insertions, 0 deletions