On Fri, Aug 23, 2019 at 09:35:22AM +0300, Nikolay Borisov wrote:
>
>
> On 22.08.19 г. 22:03 ч., Josef Bacik wrote:
> > In testing various things such as the btrfsck patch to detect over
> > allocation of chunks, empty block group deletion, and balance I've had
> > various ways to force chunk allocations for debug purposes. Add a sysfs
> > file to enable forcing of chunk allocation for the owning space info in
> > order to enable us to add testcases in the future to test these various
> > features easier.
> >
> > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
>
> Since this is really a debugging feature I think it should be gated by
> CONFIG_BTRFS_DEBUG.
I did the per-fs debug directories exactly for that purpose, the patches
have been in misc-next for some time ("btrfs: sysfs: add debugging
exports").