e273f9ebbd
Currently, we create the initial system block group in the zone 2. That will create the BG at 64MB when the zone size is 32 MB, which collides with the regular superblock location. It results in mount failure with: BTRFS info (device nullb0): zoned mode enabled with zone size 33554432 BTRFS error (device nullb0): zoned: block group 67108864 must not contain super block BTRFS error (device nullb0): failed to read block groups: -117 BTRFS error (device nullb0): open_ctree failed Fix that by calculating the proper location of the initial system BG. It avoids using zones reserved for zoned superblock logging and the zones where a regular superblock resides. Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
Makefile | ||
common.c | ||
common.h | ||
main.c | ||
rootdir.c | ||
rootdir.h |