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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9031CC77B73 for ; Sun, 23 Apr 2023 10:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbjDWKuv (ORCPT ); Sun, 23 Apr 2023 06:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjDWKuu (ORCPT ); Sun, 23 Apr 2023 06:50:50 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 922311A5 for ; Sun, 23 Apr 2023 03:50:48 -0700 (PDT) Received: from [0.0.0.0] ([149.28.201.231]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mo6ux-1qfad13HEh-00pfBA; Sun, 23 Apr 2023 12:50:09 +0200 Message-ID: Date: Sun, 23 Apr 2023 18:50:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Does btrfs filesystem defragment -r also include the trees? Content-Language: en-US To: waxhead@dirtcellar.net, joshua , Qu Wenruo Cc: Remi Gauvin , dsterba@suse.cz, linux-btrfs References: <44-64431b80-5-7f085200@250139773> <1fbcdce2-a268-aa1d-1e6c-bb1e61e18ad9@dirtcellar.net> From: Qu Wenruo In-Reply-To: <1fbcdce2-a268-aa1d-1e6c-bb1e61e18ad9@dirtcellar.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:icD6hoAuKfF/htKSrz8R6IGojmGiELEFMNUTKk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vSo0/a3ikmdtyDkSfaTb20P9G+mWA8lEOKT43yifO YuBqpb/A1uW3E/dB8kpN+p2cquN0HO9nKeiCYg4aB3Rq5+lI7cj2YhjRKnybpzZqtpIT03nER letE5HIgQkWzfQc8TDgpgccKQk8= Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 2023/4/23 17:34, waxhead wrote: >> >> On 2023/4/22 07:25, joshua wrote: >>> For my situation, (and others with large arrays) yes definitely. >>> It's definitely the feature I'm most interested in patiently waiting >>> for.... >>> >> >> You can already compile the current btrfs-progs release with >> experimental features, which enables the "btrfstune -b" command to >> convert your existing btrfs to the new feature. >> >> I believe David would release the next btrfs-progs with bg tree moved >> to regular features. >> >> And even better, the new bg-tree feature is compat_ro, meaning >> unsupported kernel can still mount the fs RO. >> >> Thanks, >> Qu > > And for those of us that have BTRFS as root? Would we live happily ever > after or would GRUB choke on this? Compat_ro feature means, any implementation, which only does read-only operations, would be fine. Although for GRUB, I'm not that confident about their implementation... Thanks, Qu