On Mon, Aug 05, 2019 at 04:10:39PM +0200, Holger Hoffstätte wrote: > On 8/5/19 3:19 PM, Josef Bacik wrote: > > In testing block group removal it's sometimes handy to be able to create > > block groups on demand. Add an ioctl to allow us to force allocation > > from userspace. > > > > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx> > > --- > > v1->v2: > > - I noticed last week when backporting this that btrfs_chunk_alloc doesn't > > figure out the rest of the flags needed for the type. Use > > btrfs_force_chunk_alloc instead so that we get the raid settings for the alloc > > type we're using. > > Tested-by: Holger Hoffstätte <holger@xxxxxxxxxxxxxxxxxxxxxx> > > Now works as intended - very nice, thanks! Tell me, are you interested in this ioctl because it was the missing bit for testing or because the chunk allocator is so bad that you need a command to make work?
