]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkfs-util: Set sector size for btrfs as well 33544/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 29 Jun 2024 13:27:02 +0000 (15:27 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 29 Jun 2024 14:11:34 +0000 (16:11 +0200)
commit03c9e88fb7eb8973477c33aa63dc6bcf0cab52c9
tree08d953db9e0bc74b49e265f5f3b298fdc2918cc6
parentd34361149f897eac5c6a41854fa4edca4804b49b
mkfs-util: Set sector size for btrfs as well

btrfs used to default the sector size to the page size and didn't
support anything else. Since 6.7, it defaults to 4K and using 4K
makes the filesystem compatible with all page sizes. So let's make
sure we use minimum 4K as well (lower causes failures on systems with
a 4K page size) but still allow larger sector sizes if specified by
the user.
src/shared/mkfs-util.c