On 1/15/21 1:53 AM, Naohiro Aota wrote:
The zoned btrfs puts a superblock at the beginning of SB logging zones
if the zone is conventional. This difference causes a chicken-and-egg
problem for emulated zoned mode. Since the device is a regular
(non-zoned) device, we cannot know if the btrfs is regular or emulated
zoned while we read the superblock. But, to load proper superblock, we
need to see if it is emulated zoned or not.
We place the SBs at the same location as the regular btrfs on emulated
zoned mode to solve the problem. It is possible because it's ensured
that all the SB locations are at a conventional zone on emulated zoned
mode.
Signed-off-by: Naohiro Aota <naohiro.a...@wdc.com>
Ok so in emulated mode we simply won't be able to test the SB logging stuff. I
think this is an OK trade-off,
Reviewed-by: Josef Bacik <jo...@toxicpanda.com>
Thanks,
Josef