This in facts exposed the long existing bug that btrfs has no on-disk indicator for the target chunk time, thus we need to be "creative" to handle chunk profiles.
I'm wondering if we could add new persistent item in chunk tree or super block to solve the problem.
+1. That will also fix the chunk size discrepancy between mkfs and kernel. Thanks, Anand
Any idea on this, David? Thanks, Qu[*] https://lore.kernel.org/linux-btrfs/517dac49-5f57-2754-2134-92d716e50064@xxxxxxxx/
