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 044A1CA0FE2 for ; Tue, 5 Sep 2023 16:03:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234126AbjIEQDl (ORCPT ); Tue, 5 Sep 2023 12:03:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353745AbjIEHwP (ORCPT ); Tue, 5 Sep 2023 03:52:15 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD4FCCB for ; Tue, 5 Sep 2023 00:52:09 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9D658211B7 for ; Tue, 5 Sep 2023 07:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1693900328; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IinGMK0dG+S73irNwFie4MS7xok2MtWz2KkIF/ZTsUQ=; b=R2PqSySulmFbScnfSMlrIy88SyHez6OpBWtZAFqM9lFfVnzuK6apUBttG7qP/8/g6uScol lNz4pKeA8veR2nMhRDveVUw8Rde/aUJNFR1BXmtqIPKKmO8WfHZYbsENDSajhSfbq+v8qZ UfSKnQPXWij0lYrWbyfJjlwS/ZsJqZw= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E633713911 for ; Tue, 5 Sep 2023 07:52:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wBjTKife9mTFeQAAMHmgww (envelope-from ) for ; Tue, 05 Sep 2023 07:52:07 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/7] btrfs-progs: cmds/tune: add set/clear features Date: Tue, 5 Sep 2023 15:51:42 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This is the first step to convert btrfstune functionality to "btrfs tune" subcommand group. For now only binary features, aka set and clear, is supported, thus uuid and csum change is not yet implemented. (Both need their own subcommand groups other than set/clear groups) And even for set/clear, there is some changes to btrfstune: - Merge seed feature into set/clear To enable seeding, just go "btrfs tune set seed ". - All supported features can be checked by "list-all" feature Please note that, "btrfs tune set list-all" and "btrfs tune clear list-all" will have different output. The reason is some fundamental features like no-holes can not be disabled. Qu Wenruo (7): btrfs-progs: export btrfs_feature structure btrfs-progs: cmds: add "btrfs tune set" subcommand group btrfs-progs: cmds/tune: add set support for free-space-tree feature btrfs-progs: cmds/tune: add set support for block-group-tree feature btrfs-progs: cmds/tune: add set support for seeding device btrfs-progs: cmds/tune: add "btrfs tune clear" subcommand btrfs-progs: tests/cli: add a test case for "btrfs tune" subcommand Documentation/btrfs-tune.rst | 47 +++ Documentation/btrfs.rst | 5 + Documentation/conf.py | 1 + Documentation/man-index.rst | 1 + Makefile | 4 +- btrfs.c | 1 + cmds/commands.h | 1 + cmds/tune.c | 448 +++++++++++++++++++++++++ common/fsfeatures.c | 53 --- common/fsfeatures.h | 50 +++ tests/cli-tests/018-btrfs-tune/test.sh | 40 +++ 11 files changed, 596 insertions(+), 55 deletions(-) create mode 100644 Documentation/btrfs-tune.rst create mode 100644 cmds/tune.c create mode 100755 tests/cli-tests/018-btrfs-tune/test.sh -- 2.42.0