Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6CB9C433FF for ; Mon, 5 Aug 2019 15:40:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C184A216F4 for ; Mon, 5 Aug 2019 15:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728717AbfHEPkr (ORCPT ); Mon, 5 Aug 2019 11:40:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:36488 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728680AbfHEPkr (ORCPT ); Mon, 5 Aug 2019 11:40:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7DFAFADD9; Mon, 5 Aug 2019 15:40:46 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id BC982DABC7; Mon, 5 Aug 2019 17:41:18 +0200 (CEST) Date: Mon, 5 Aug 2019 17:41:18 +0200 From: David Sterba To: Holger =?iso-8859-1?Q?Hoffst=E4tte?= Cc: Josef Bacik , linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH][v2] btrfs: add an ioctl to force chunk allocation Message-ID: <20190805154118.GA28208@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Holger =?iso-8859-1?Q?Hoffst=E4tte?= , Josef Bacik , linux-btrfs@vger.kernel.org, kernel-team@fb.com References: <20190805131942.8669-1-josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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 > > --- > > 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 > > 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?