From mboxrd@z Thu Jan 1 00:00:00 1970 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 6CF20C433FF for ; Mon, 5 Aug 2019 14:10:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43BCD214C6 for ; Mon, 5 Aug 2019 14:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbfHEOKl (ORCPT ); Mon, 5 Aug 2019 10:10:41 -0400 Received: from mail02.iobjects.de ([188.40.134.68]:43480 "EHLO mail02.iobjects.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfHEOKl (ORCPT ); Mon, 5 Aug 2019 10:10:41 -0400 Received: from tux.wizards.de (p5DE2BA44.dip0.t-ipconnect.de [93.226.186.68]) by mail02.iobjects.de (Postfix) with ESMTPSA id 19471416B329; Mon, 5 Aug 2019 16:10:40 +0200 (CEST) Received: from [192.168.100.223] (ragnarok.applied-asynchrony.com [192.168.100.223]) by tux.wizards.de (Postfix) with ESMTP id C0748F0160B; Mon, 5 Aug 2019 16:10:39 +0200 (CEST) Subject: Re: [PATCH][v2] btrfs: add an ioctl to force chunk allocation To: Josef Bacik , linux-btrfs@vger.kernel.org, kernel-team@fb.com References: <20190805131942.8669-1-josef@toxicpanda.com> From: =?UTF-8?Q?Holger_Hoffst=c3=a4tte?= Organization: Applied Asynchrony, Inc. Message-ID: Date: Mon, 5 Aug 2019 16:10:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190805131942.8669-1-josef@toxicpanda.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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! -h