From patchwork Tue Jun 13 10:47:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13278349 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 A23BDC7EE29 for ; Tue, 13 Jun 2023 10:47:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239623AbjFMKrf (ORCPT ); Tue, 13 Jun 2023 06:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241829AbjFMKrd (ORCPT ); Tue, 13 Jun 2023 06:47:33 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE67F1AC for ; Tue, 13 Jun 2023 03:47:32 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35D65XkC020272 for ; Tue, 13 Jun 2023 10:47:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=/XRSEgeEwneTV6grryAZRIkuKm+XwNCcZ7uPtWdBrF4=; b=ebdjIHFJHiPN/neZHhSf9PXZZhbWUTF3r8GRp5kclQfBvZwA66slg4J0Eruo9ebIzVef TJEhlNHw20qB8hQk3wLAttve4kAr/Gpo2ZzymXJF2BCN609Wt7J6uV+aDYJNZinKTHHd +BkjKXZjQEpjoxgUAlFPOpu3BU1rY6JBdedCYHdINvISOI4zFkaeXv6r2tjGeRsHSO3p n+UBEgXrs9/YqjAgr8mkjPgPO6VLE3jNrBidmPPSU61yd2selpECTVQ1T0yHLvGWP58q YJgqZIsfj8uWYWgxmsKwAfyxPQp39+CW4WydQFsnVbQRjYuV+ZFv/CbvWEqG0Q0XSFtF /Q== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4g3bn0v6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:47:32 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35D9Z8c2014099 for ; Tue, 13 Jun 2023 10:47:31 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm3r2mx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:47:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SyZiHThOnYCYbsSuIw9WM8+gAJuVWle5xTLsyR4TRfSA/10RpWYZmS3KuNTsjMDRRpqv40gxg/pROwNGHtmTn0eVoEkiC0oFRhIouRS3lC0CTZQsaSvAZjs7FMuuKZg4gXBGorM4FSvgrZrzSF6nQ9KqkkPXZuMR7j00oJLPtBy0RtdPbCxSyoQaP3nMKsU2YZy8kUZg5onVYhluAXHDDD2FkIojBRYVu0KHeSMz+HyA9jhwObhLF+7emgkKWBlOukHpXBIrU1H/A8nX19DxEGU7X3nxMqx8xAZBGw1u231ee8+EJVWrMINyGDh9XTeP8AjdUeRNsMYdVoLxpbfLhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/XRSEgeEwneTV6grryAZRIkuKm+XwNCcZ7uPtWdBrF4=; b=M957hOUm/MrDYM9PX82QFITUJbQqduwES/hcyL3sBOOZDLLjRS/yoDdWsVSUF9bh7N/xX+S+f2uRZebRjChHbP63/eF2t2Tg3DTMn8V/rauq4xuWRg6w8lOTLf8Plv0xF7ukGgkY5YElUoTn2d04v0PE6aZi/7AstWN7KfK0IARd7cjO8FC2k0mT94k/mQ5WFByVVWWyudQdMiMUU7dZO0XQu6+sLTHf1CL82epp4HtCcmIJEN8E+pjhB9AzhlahD6X4Ose88nFOQ96t3UHpL4OkXTIPG6zFo0gUkteFQZQrkm/EQbL0Tbx99RXtnw0xGcqpAgE8sQvueK53+6jUNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/XRSEgeEwneTV6grryAZRIkuKm+XwNCcZ7uPtWdBrF4=; b=fRi9yOAuPqfY9HgiaIrK28k1vxZFTLnxnv/g8R4oEein93P+4uhkzufOTbbzjq2DME2NsBtfvAXHlrG8wzoLSVPm0rHYHLGWca2ToHRKNyVEK4GmkmoRbgJaZtLwmVpafTgdWKIPw5kqktaNaIvevU3lpkoi9Ri08plOtQZb2M4= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by BLAPR10MB5012.namprd10.prod.outlook.com (2603:10b6:208:334::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Tue, 13 Jun 2023 10:47:29 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e%7]) with mapi id 15.20.6477.028; Tue, 13 Jun 2023 10:47:29 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/5] btrfs-progs: tune: consolidate return goto free-out Date: Tue, 13 Jun 2023 18:47:11 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR02CA0042.apcprd02.prod.outlook.com (2603:1096:4:196::19) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|BLAPR10MB5012:EE_ X-MS-Office365-Filtering-Correlation-Id: fa4b465d-cc31-43e4-146a-08db6bfb9599 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5wfylZds8necLVqlxNscYleB9Wxab7OPBrE8LC7R2EBlKDwARbs+o0JnGl9dhjSYmb+vqvB01WHf2/zP/iCcrdP0+UfH7+HhC/u8XyqiY4OHv4l6euR6CQCwhPmnfOBMDJ6ET5vMp2kneKpF8FRB+yTNvzsp5mLOkEOfJz33U056jI2zIVw3DfPepX3r3BQsNVsX3Nz6BBAkoTMItF7qp3nKmwZCIWt6UjcM8YopKT0P4nH/ijpKaT9rBZAjebZMs1TaU7Wq8g58uc2X6zG+BH+Zd2UjlI9QjR8l+SIvRD0wyLZlgBK1nYFWIQdIuloia95xLppN25UeEuwbkBG9jKuK+VnA/2ZWKY2FaIqUbzQT3cGFewjb2XAB1ijYoHzCAGwZNQqXGuyqozTcGpVeFYtaLlCp2qGxX49h3mE0IW1QY7cIKy+yTs23am7G6JXaCnzHZfeKdLRfN0kZx9jozy2A2QP4Q2qzbieXLjDLwqq94mUtdzD0dc+E0hcMK3UmxCwhhe1ccjryP5FVSn9ix24YcQ959b7zH8+X2AACNPYEItTn3IFlubSNxLYM1oYL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(366004)(136003)(396003)(346002)(376002)(451199021)(66946007)(66476007)(66556008)(478600001)(8676002)(5660300002)(8936002)(36756003)(6916009)(6666004)(316002)(41300700001)(6486002)(38100700002)(83380400001)(186003)(6506007)(86362001)(44832011)(2906002)(26005)(2616005)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GgibRk3vf1SCxP38mkJdIyh32BzilN+rrjuZMRV3wNgB+kV0JavYtlRxgMJqMum4tgavvXiq/EJntwc0jrMRy2wlbfDKx0ZkL9SthtBiKDwB+dfBhOY9txdyni4SobS51ktw0SlpFt0iqUEIbCROWgMMzQFyrGanqx6bvwXHjYxA0GxfgJouSJEFpWd1kKyyfeuKX16iTc3U6OyWMTDtBSiIiPVLbw6BV7nRDi2gpHxhasPc2KS909LYTyrUyB8Ouxm1rjpYMY7Y9F9Ecj9A5abtkV8cDWDfE36Zl0YiYyUptAQHiSzOAUA4x1C/FlhMPfNQ6pVT0Vx36Zj38Q9vKsjGi1PQ0534LmcF8Y5kvy1IyzZJgJXfaZgVrPidusfFP6vme52kiLMybqqHq0ZkUwn7/5xkzVPbfZhQxKu4OZbF4qIxQu89EFgUNXt398PBd9Aenrq9CyFufPZcQemer3U/HifT66LlZfKAVDhcPB2ahX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mlFqSoCHHr6bVuuC4kj+8xNa5 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Ms2Qm/SbC1X70dyaFrK/uZP7ag/T+ixA4maMC2cWenwXIQfSgE0LPJhT8CfcXgglm+nFKUDkmvucYoiBh8UcbVDJDRxMczyAnnHDIB6CroAt2hDp+DZs8mPYBu/QKCvhDTWHWG0WBqrOopS/NaM9QJ2+WoU+tHWLzJDJ0wFoNwELYAl5v29L1q6zPTOlzo+3izXkU+mOof+LlBTe5ty/wuc8NJXgESN+PzAv/JYp1GOJleo0scJNr5dg10di+CETPf2yTI3gIxVPmX1rxCQOLP4b7s3Ovl6xu5sT1MF9IWk8GYjeVrTtBMtD3TBRfgHj47wLGIahpjiXeSshh00HoeUIcx0Pjmc9CjUbm8Y06kXthIXRKBpZQQmPxtPwMTO3z9Br/5O9xfVfkYWR6J+3d8Yq2og1Uvfv3HN3+2Rh2IS6ZkyblGUQM3AiB75E43rpL+Sy+p6BG9dneR4uCMx0NrpX7WBX786omTpIRnBQiyyEmj8OR7vGgfYvrr81nAuiapQmmiXXQC2U6ZV5zS+N6FKgRzdgf7fdgWO8jViv5Vktn8La+h1VicFiC4qlocJCAA3F7LAfdIEV94cviEpodLmYzrtvCLybq5ivqyixO5kkxa3Lv6mPF8NlBJYw+rGokQkYRymeaDcgBUGZRytvt7XGUFukg2QdeVbCsgUeN2iEvUaSAem0q+zHZD2dj5eF/aOlTvVXzgArMVSl+tLpH33Pc9zk0kXmdREawQr0EI+z52Cfxfkiw9RnRsSNQNItL8v3fI24rn1KlrbORcukRw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa4b465d-cc31-43e4-146a-08db6bfb9599 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 10:47:29.4822 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: c/MidOgfzlhm9fCoEEolkBUHAxLlBT2GFss0EcDA5QMe87dex6IIjjerjLAXnPnOR2aOBsqqS13vbjrDBg1G0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5012 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_04,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130095 X-Proofpoint-ORIG-GUID: ZDZSlldbuIS4FPOxlxxq0cPVtD3HMqf6 X-Proofpoint-GUID: ZDZSlldbuIS4FPOxlxxq0cPVtD3HMqf6 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org The upcoming "--device" option requires memory to parse devices, which should be freed before returning from the main() function. As a preparation for adding the "--device" option to the "btrfstune" command, provide a consolidated error return exit from the main function with a "goto" labeled "free_out". The label "free_out" may not make sense currently, but it will when the "--device" option is added. There are several return statements within the main function, and changing all of them in the main "--device" feature patch would deviate from the actual for the feature changes. Hence, it made sense to create a preparatory patch. The return value for any failure remains the same as in the original code. Signed-off-by: Anand Jain --- tune/main.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/tune/main.c b/tune/main.c index 0ca1e01282c9..0c8872dcdee5 100644 --- a/tune/main.c +++ b/tune/main.c @@ -145,7 +145,7 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) bool to_fst = false; int csum_type = -1; char *new_fsid_str = NULL; - int ret; + int ret = 1; u64 super_flags = 0; int fd = -1; @@ -233,18 +233,18 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) set_argv0(argv); device = argv[optind]; if (check_argc_exact(argc - optind, 1)) - return 1; + goto free_out; if (random_fsid && new_fsid_str) { error("random fsid can't be used with specified fsid"); - return 1; + goto free_out; } if (!super_flags && !seeding_flag && !(random_fsid || new_fsid_str) && !change_metadata_uuid && csum_type == -1 && !to_bg_tree && !to_extent_tree && !to_fst) { error("at least one option should be specified"); usage(&tune_cmd, 1); - return 1; + goto free_out; } if (new_fsid_str) { @@ -253,18 +253,21 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) ret = uuid_parse(new_fsid_str, tmp); if (ret < 0) { error("could not parse UUID: %s", new_fsid_str); - return 1; + ret = 1; + goto free_out; } if (!test_uuid_unique(new_fsid_str)) { error("fsid %s is not unique", new_fsid_str); - return 1; + ret = 1; + goto free_out; } } fd = open(device, O_RDWR); if (fd < 0) { error("mount check: cannot open %s: %m", device); - return 1; + ret = 1; + goto free_out; } ret = check_mounted_where(fd, device, NULL, 0, NULL, @@ -273,18 +276,21 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) errno = -ret; error("could not check mount status of %s: %m", device); close(fd); - return 1; + ret = 1; + goto free_out; } else if (ret) { error("%s is mounted", device); close(fd); - return 1; + ret = 1; + goto free_out; } root = open_ctree_fd(fd, device, 0, ctree_flags); if (!root) { error("open ctree failed"); - return 1; + ret = 1; + goto free_out; } if (to_bg_tree) { @@ -431,5 +437,6 @@ out: close_ctree(root); btrfs_close_all_devices(); +free_out: return ret; } From patchwork Tue Jun 13 10:47:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13278351 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 5AB68C7EE2E for ; Tue, 13 Jun 2023 10:47:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242039AbjFMKry (ORCPT ); Tue, 13 Jun 2023 06:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240750AbjFMKrw (ORCPT ); Tue, 13 Jun 2023 06:47:52 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E594D10D4 for ; Tue, 13 Jun 2023 03:47:50 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35D65GBg002074 for ; Tue, 13 Jun 2023 10:47:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=5IsT+RYwy9H+LIAOhgYdGGgyuyfolwuvxhsoRPxKRUk=; b=tlyiTuqYFq0qbms53iXcOlioBTyZmL3NCIFeMcC3UKT0za0mqqUjuUzuuxkx0H0Zv8hX ZTPd3SzF0JeWJ9AlBlBDcK1mgiKpR7Z3SyYZ34ZFrwNXJZf6KNrQQPRHvQyT8Al8yCYW 2ZjzfZgKwlHjmgLbyQTCzSZF0PWR0FGT19PlXbBVnY1n0qkb/YxDRXEd0uTL5pN0j5QX Xh00n3pUO5E+WpIc31EwMyxd4Ic7LHgsN324IvNlnjZuMjvAw+y4SzbLNI8Pnw2dMJQ7 wly4qs3Tnvd1DyNJNJ3sDot/+gvrDu/fVxxVfpU5XuaW6YWx6m8zxOPrJ/0Ncy9LXibx eQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4gstvus7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:47:49 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35DAhekI008272 for ; Tue, 13 Jun 2023 10:47:49 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fma8jhc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:47:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kdu9Rf5xUi2sbMcoFNBGJFvCi8lpTotox/luT0991SyHDvTuteCpBmiX4NhvfYLhhvAviyRXpXvr4PJW4zliGFzAehTL93JH9goHC/oTwjHrI4UdoxMASP9Lulx5dz3s5E7K4oSKUy+o8/DO+Mcu0zSIODh1gXRCxHZt4AKpuCXVcgfaMrjkwfKpEDdHnHIDA4ExW92xZLLCNLydijXhvLuetIIkufRW/6BNQOkeTOdC5/nRROvASqZOFDqjw+yzY7NTtQCAL1cuH6k8+COh/NvFJq65NK4YCF1wW3holKJvdCNFGm07nCpFsdfu9LBmhcxnaQ+EBc6g/9NAmbEHiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5IsT+RYwy9H+LIAOhgYdGGgyuyfolwuvxhsoRPxKRUk=; b=HPYdC/UpPOa+ssuuU5eCOSrDoel0Skh2+x/11mVE7VmgNrFqzJvje/bzm7BaBjMxAkKRZis0a6puHJRPaxotyDIw7JAF2qcVO5OAwUc9SWEZjOzaQ44miEd84Fn314bYonNJMyOzuF2AgOoVz2EnAU62w8Ik2uYKq0NaIdkaLDMUzoxLh1Jjnen8lT2AKZr83GouVkBWcy5C99ZgJIduONxF5dhkIIY/XtSpfIKaszYnQfAVu4nM0l9hai4TDiiAnRwAP1Y24cS91PEjh/UySFM8VwDgWy2OGVFU397vUnfMDGkgIo/33oeAz47GyBwNQbJRFMP+km0Rip4eiVvoig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5IsT+RYwy9H+LIAOhgYdGGgyuyfolwuvxhsoRPxKRUk=; b=vAjYIlVfuAahJdtRAVbPkiSURHy4jDZ3Sp35R2YPLPEI/JwUHDlGZMoApY5GiT9WjXRfmPzE8XEV8K4BsmvWIkere+c0IqzyTsR0wGJF6Iz5BzXZTQmyN55SFQW+w3z9MY3ba2Ppu8limARd9GhvTvfItOr/DqFsWr/YWSKJMH0= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by IA1PR10MB5900.namprd10.prod.outlook.com (2603:10b6:208:3d4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.38; Tue, 13 Jun 2023 10:47:45 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e%7]) with mapi id 15.20.6477.028; Tue, 13 Jun 2023 10:47:45 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 3/5] btrfs-progs: docs: update btrfstune --device option Date: Tue, 13 Jun 2023 18:47:13 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:3:18::14) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|IA1PR10MB5900:EE_ X-MS-Office365-Filtering-Correlation-Id: 42088a2a-a9b3-4350-9f5f-08db6bfb9f1f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KramQAse/3HTAY2KmrWRbS2Em7/W7uBe/JdttDsQudJnvX+QA2Evvn4g1hyJlAOseFid8i3pn3gNRZgSNH9Iv9m5AzmQZ2+KoppSaX4Yxmh1rzp2O1Yr5xBn4jOcQQDOiT01HzCg7LikOaLJA7BV0oDnsBrDzPC5fqGq+02J2+9/jTZhuw/8XoJrYNFjtKfU1po7cO3zE0sQNvUHw5QyspKEvvSSWCEV4MEB2EBq7rhdiybGqoCDE4bGeV0V+WIFvi/jTiJTUzDrLS4yeuo4Bwk4I0EgnpZ1qy/TE5Wsx3OPvFoUJVPkYs7sYefX8Arl+BYDo4ZB+dDX6ssMbcmrUjhq9GXnIOY/W/HVWVmxYDvv34ioY7fx3r0dYvgDU0rD6+SCXtmOPMflWFWA8oFSJochVqrz7s2f87Q1v1dcMtErxSoIh847XefdpRqJwVkTnFEIKfQzudQkRRAAw2BMKT07cMoSgfOVrepyKwIJOODsVYx7DHvAwaoXEbBn3qBZVXgGhM33wOlxdoba8uPOhZ3KTQFgGYdMdM7BYrgPbOfm4A2ru4gYWWjymcm4hbNe X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(366004)(39860400002)(396003)(376002)(451199021)(86362001)(4744005)(2906002)(15650500001)(2616005)(83380400001)(26005)(186003)(6506007)(6512007)(478600001)(38100700002)(6486002)(6666004)(41300700001)(8676002)(5660300002)(8936002)(66946007)(66476007)(66556008)(36756003)(316002)(6916009)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tPbIF7iS/K2T8El2WOGTzO4ipiEevK6lwCdhuw2isWp7Lj+Uv5pYxB0g9Fmd5ycwU+aACeJUbMSkpJJlGjIfdOSFufRyG2jhEQShCML837/8duk8HAmdGL3JQMLjaI0jHYdc2vyXQb3ZNWdD7uesrkxsrvdhunddmyW8z4MiJYvpRl6DyrbMFSGjPU3vkRgA+p3/iOG1rNmyUyqjyYKztYrw4HV8Ys7T5/8NqNdzaghILnY2UtxZGCk9H/jOZot9JNGZ4EYhP2jUP2FXWOZkROZJkjExv6K0RK1dzAxKYdrmHScchWgdxOkml6J3llKR5X9ccOEAw1lY5yn2vy4/7zOkx/5MkEs+lPlKrsMMOXRrdlYcdX5m5NejyqxZh9Pun+mnfVYMvKcPXyIiCIzQAfNRrbNefndptCe/SNLf7mRsBHgiR1v3IPXA3/WTOxv3kZWuZ9Qc0zUQlEB5uINrnKzD1ZOA73NzXhsDRFGJhy0SLDCbIDaXQ+uQQ4BmlAVsXT7MQzT/IGc5N01+UhFRHMKygmqzP0PpgGnye4CJ44LMvDtmrasow6Scf3QLn849MZHdOhCigtt+M3lt5R+icVpylkZTXC4iRKufKzMRTUX1oRqXx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: qTusIDAggB6jWwZYV1tN3siSXflPnT0UXyVUfLbgSh24ngMGITS7j/9RCsCHmQmHmgzoeRjUqbmTf2etXuJXQcoLvDIJcjGN2cnhvjoNBh0JB+nP/sGlzvAE6lMU9If2dRer+FgxBBIZv1Tjvmrz2xgowYeEH8nPW9sk1WdbXbIr4wHRWtt2Q0np58sC7/r939XYGB25Eum4Q+sIFl6U776aXgsbIvsbgvmijBz5vq7W82+Ndr5D3FSaEi+eE0S9pE9ABb4OvFANqoQQiYUXgeaUxeMwsKj/j1XXvzClh1HkIq4L5YC13RnEQh4sVjIEf7bGhBUI+Dn2LoUHOUV73weDoKG3NAK9Ct8JwGhwCYoVYbmq7iSXMd2V+haIjs1nZ9QHw0b3qb2jpMjtoNV4yddyIf9Qkr4y0ijBSVlg6t64MJDq4Vgnj0iuwgrGo8oXboodLU/knEAQ7G7eZLgXK5ugUfyDIamysJ99hmagyOtqIX3QCeZJvSc3dTtNV7mbBpVCFj/trtEPmS0m3ffxx/a4kTNaD1uX2Stw+Uqp/9V5EX+oYHZDVf5KSNVjaUgIEDmztPSQpPyyH+CYKMuZcDwukQ9biveVPTSRKBEAJEZ71Azvd7gPiWv8pqcRBgIYFmPYby03pG67wpz87HT7+gU+yJXCy6jPDh8FegVsk713kUHKh2QjmS4tiBUnXYESc+HcwVvlDE13inxPdefOHQUaSSbjyAEPvYYCbNnJo7oj6hhLgSYqmXl/hE5gbKvt2c88N1Tj7/VFq8zQzLeDIQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42088a2a-a9b3-4350-9f5f-08db6bfb9f1f X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 10:47:45.4443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uy5PcEOwf3dgQuqCj3X5iY0vhAuk0zaNKDjszuQSnJffzVL4idi1LSu8/3kuqNs24P2HzTXg6ppVm26TTl1N7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB5900 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_04,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130095 X-Proofpoint-GUID: qmdaCHg6ECCHmNPxTnz7er6W4U5uO2Yk X-Proofpoint-ORIG-GUID: qmdaCHg6ECCHmNPxTnz7er6W4U5uO2Yk Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Update the Documentation/btrsftune.rst to carry the new --device option. Signed-off-by: Anand Jain --- Documentation/btrfstune.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/btrfstune.rst b/Documentation/btrfstune.rst index 0510ad1f4c26..89f4494bbaf0 100644 --- a/Documentation/btrfstune.rst +++ b/Documentation/btrfstune.rst @@ -46,6 +46,9 @@ OPTIONS Allow dangerous changes, e.g. clear the seeding flag or change fsid. Make sure that you are aware of the dangers. +--device + List of block devices or regular files that are part of the filesystem. + -m (since kernel: 5.0) From patchwork Tue Jun 13 10:47:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13278353 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 76146C7EE2E for ; Tue, 13 Jun 2023 10:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240750AbjFMKtA (ORCPT ); Tue, 13 Jun 2023 06:49:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238417AbjFMKs6 (ORCPT ); Tue, 13 Jun 2023 06:48:58 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C171AD for ; Tue, 13 Jun 2023 03:48:57 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35D65OJw029894 for ; Tue, 13 Jun 2023 10:48:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=Sei11RH3E4uZvchkXwIZj70fH87Wge+0QwDc4uo9u48=; b=AwJr24x58jB/TM0XB+f/rBu6dJwm/lR/gOb1FH0T6o7iGNnWv7ekTIPQpo/INMc6VMwf P8RYUfdjI9oHcaVxYtaXGWqU7bEwTuDo+uGv5do3yJFHTbCv98qVu/fZMG57cVakkuF3 5Pgn5ScuqF9dkqGyyWJ+9JllmRYyXszk1p6oDqoWn5NaWegbfgilqk8Xp4U/6oymlXk0 FxOPhhiWWI3S4vHuaM/kPAADllstYzgdfs11gUED9ockpNtGsgTt0jXnbpyQHTy+qRvl 4+NgGH5bJNGTp6L4qC4+gbZ46BZ2oxutVIFV3b64V4+aiD8bC9PmSr9G3WopuInP6UrZ ww== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4fs1w0qq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:48:57 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35D8vj2O016225 for ; Tue, 13 Jun 2023 10:48:55 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2041.outbound.protection.outlook.com [104.47.56.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm40d47-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:48:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DukdNHHs09AH9GVfjElgy4Wqe6nz/YeG+0hWX+W4iDc0Rb5pEEF2hqQyEsRAfAhW1dKwyhbEER6O7PDzJ5Ou7GCWfnhGzT1c3AOaUbnugYkvJtrvUuiYFuiOJyZX+FdMDKKBi02hE53nFftKffftrpm1jH1XOcqFjbZp+T23IaJzqCBFUw664g+KhA1iDJYqyWjScE6KK5T+MJT297R4RH4lF/A9e+nsG00djsQst8MEAvYiylhqddczD+MoN034AaPaPTT4eadi4nzCcbkWN35mnJ7mtfIwRf61/YcHffv0XYonLS8ScaYw7P3Qx0cLuTsRGYiPNDi+2eDBY+zkAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Sei11RH3E4uZvchkXwIZj70fH87Wge+0QwDc4uo9u48=; b=Q2xmAf/oPcj+gaUitsxG7U33fGlZ7lEnTnNAx7QgXdU3MeK43peEkppqG4/vU19FsfiJeiPFVAA2nyE2PyuLL4Ks/kH/rcj+IpUys+njO1cCL0v+Pc3rfFSFfAvunb78hp1/EiBbBPsJDCrQ22b6L9Pxenw1CZunr6/uobbfVmLxWUIlYfArd2lhGLasaYM5knUOMTM/hMzKuJcqTTZJ4sdjsvBsrw6I1mQ0SRkKg3OfuF69v94tB5GEMNokNvK4JmJGDbUClayNlmTxL2eauK7OEyUEO2L3UkDiEHSXgSqR4kWwlmka6q7THonSAA1ihDMhhfvqtHYYEbNsgRTCJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sei11RH3E4uZvchkXwIZj70fH87Wge+0QwDc4uo9u48=; b=rLanURfMZ+io95KORLTG52q3T7cb8ntjpWIbazyKzRz9sOfjKNdYn7gd4km3Q+io8cx5H3CPH2yyqkCYmPE9AN0Ix1SPG2RgbHl7lckLxaXmf6TE9PyArUGgDGUNbCTOX1TcLLX9pnWKA8TW97clmEuHJeaSS5TZs2jwKKjCOcE= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by IA1PR10MB5900.namprd10.prod.outlook.com (2603:10b6:208:3d4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.38; Tue, 13 Jun 2023 10:47:53 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e%7]) with mapi id 15.20.6477.028; Tue, 13 Jun 2023 10:47:53 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 4/5] btrfs-progs: tune: introduce --noscan option Date: Tue, 13 Jun 2023 18:47:14 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0041.apcprd02.prod.outlook.com (2603:1096:3:18::29) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|IA1PR10MB5900:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ba58e54-23e6-4580-7e21-08db6bfba3a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qJBbbhqV45VDtoF7MofedNYvILDjmH7vEUCnxQwEIALujclFs5mpoxhvrMSwuY3HXf0Hu0s8f3qgyFUvP6BvTEWEnvzxAQMjvdaB3odVpRdAGOAL1Ff0BRi5QR3vP+Tav/sNUp91sqoEaXcp8g2atIkL0qkSu9KsLgaLWn1/Q0Llp0mvEqLA3+8M01IXN7dvp+zRXGhoD+2b2glwpjEUBR/SeYNy/RbVdxhSInLl5NpNIloxoT26ndjbIaKxC1e94YMRWYZYoK0LE4WMZQqQxp0/gT1hHaV3OFrTPHwBthK2MJjIxJ3L5zkb3Xz7jXYTOzVwq1NSTLMtNb4VB86H18Y+rIbEhYrzGWZOAeGpBzfL+pne9TZHsFA6nbQ/4tWrehhHqdnFQK5vGUVBfnnBV/hzZ0SHGbiA/Bx6GfO3nyqW2jA50zpyanLH1QUNQetaISkI9gTRmyW3TsDIayxpnsrElZRwoAHiZVNdv0ZPxr+zpaI6pqyZTOWS/eI6YrebFONENwScl5S1lRrdJwAyJEbcSozZd7wgWYMtrWP+si1F6DlLxqGnmCBYebeQUWPynFi7RI0wFXxiNJgyS4K1cWY7i2nUtkKqsSe7r9E+W8LO7Ve6ILmbCOAh86AKAgzR X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(366004)(39860400002)(396003)(376002)(451199021)(86362001)(2906002)(2616005)(83380400001)(26005)(186003)(6506007)(6512007)(478600001)(38100700002)(6486002)(6666004)(41300700001)(8676002)(5660300002)(8936002)(66946007)(66476007)(66556008)(36756003)(316002)(6916009)(44832011)(461764006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Rb6Qv6PILvj7HNDy2asu+VbZa9sNTAx4t3VJ/I+uG3qyEMEebOjm5NU1R4iAiuP9PZB5oIbS72Trjy1f5eAAO30vsmtL7a2qUQIDo7uWWjawWVYshUieEcm+HT0uyaS6jVSgNzCOj2iJmi4UqPlOua7dBO7Ar1tE5rZhtWHHI80GAcYC9ewCWaODL4bOYEkHSx9P8Uoh6D/VZReAiteC68NBb5LoZpADr/DBrbR+HeF44Fiia3S3gamelAdJL4BvGhv0vEgOHK+J96EJSWx3tZq1n8nE4DxAe7/WFMU0snVaGK7SwskuyIHGm5ZKz0O5tkYimTaXUSpE506qSEzaYcTdhYLcrtcf520wNMCjxfaROoQ09lNU+XAvlMDZYb+ktA4e4bcgdkxb8gQF0Ww5uc0pfi/07OMLT3E4kHfFYoimAzNrLqdCMxYNgR0WP9lSzlfWEiMUQ6MVI/5IrmtWt6CmWe7DlhwTgq1/Az4aRuNWhz/6bIqNnjPpn0fEFasEGtLcksw/LM46IvXfFnuFeUTpVZd5sdAUf5Rp21WyL3nUe5jsTp3PttEcWCPnjFGRp5thtCKIIMgiaMTJ5Yk6dSGd5QBIgmga8FACI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0: fh3cWHASj/cwE2D8wpoQpvJwsFxyKk4uYM2BQ1VWPBJc6OLE90GAkUKvKnSwPHyiNhT1oYSfRxJI+5Jr9q5ZC+DU4ViRVV3OmOsm0geWWVPHVPfTlaDD810+Rfy/AIPsJ91DkiKlczUX25lTdH2iCNRyNHSc5xm9SHE7vvNBF2kHftNiZkoJsYcTY1TvweHOcwNdNKKxfEN03DlrfAPBnTVWwu/GybvRxISwpl8kadAtIEDAhJ6H2lLFCTvlWgnHkEZIZrXZle9K6Lvsp6D3HUMd6EMaZh2I3ADnbSAlU+v3vIdQYQquyvLUroHXlroqbdTY5wLmO4LgS4dCY6QL9l5CvyCSGUK9pufg7CkzL+xfPWPuvprt0AAgafzdNbnaokFSznvIwFYqcs0+HHtyHQjRntyqhbqFQCLEbE2B2tqN2tYd0gj/ArVqHqxtdx2dHMi5WqANWEszYzBUiGuv4XXAvHWGIj3TwSHYE4bAe+rRw7sFo4/YcLKsVS8QsYaJzc3QjwBW9iVx1/ks3FIKMOtHyGVNjDpalCYmkXs9N2IGxf11DAPdS4UIkr695G+Mcabnj4tkJuVGb0mRr9elgzyBOYHmBjLjQtO/32AhkB17c8f7pqGHzrhwsmL0Y5tilrnwxsQo++BWPVnVeFEIGBAovJMVxQMKPDiySq0cebYF2tiVrQG9P1OarXxL3JgZxG2zHHZp3uNEvMT5h6DYnNeZ8l2TYQdIRMaWN/qnjJUKfTncpGbwpbG/RfwMNncngZs8Zb3hRvdYLimoHDo1Tg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ba58e54-23e6-4580-7e21-08db6bfba3a8 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 10:47:53.2394 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m3F6uTKqzjFXVjAj5AVmZ/9HswkAF0g90LfglCfshIGWn4uX42jXPCEHAE457wbN2NmU3UkObT5tFMnW2nNiYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB5900 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_04,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130096 X-Proofpoint-GUID: 0UPZcrdhgUATjFXRnytOHgApF0pwHoVm X-Proofpoint-ORIG-GUID: 0UPZcrdhgUATjFXRnytOHgApF0pwHoVm Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org The function check_where_mounted() scans the system for other btrfs devices, but in certain cases, we may need a way to instruct btrfstune not to perform the system scan and instead only work on the devices provided through the command line. And so, add an option --noscan. For example: $ mkfs.btrfs -fq -draid0 -mraid0 ./td1 ./td2 $ btrfstune -m ./td1 warning, device 2 is missing ERROR: could not setup extent tree ERROR: open ctree failed $ losetup --find --show ./td2 /dev/loop4 $ btrfstune -m ./td1 Or just $ btrfstune -m --device ./td1 ./td2 The 'noscan' option is optional because there may be scenarios where we have a copy that we don't want to modify the fsid. In the following scenario, we keep 'td2' out of the metadata_uuid changes, even though its loop device is created. $ cp td2 td3 $ btrsftune --noscan --device ./td3 -m ./td1 Thanks Signed-off-by: Anand Jain --- tune/main.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tune/main.c b/tune/main.c index f595bfee0e6a..af0e58973355 100644 --- a/tune/main.c +++ b/tune/main.c @@ -150,6 +150,7 @@ static const char * const tune_usage[] = { "General:", OPTLINE("-f", "allow dangerous operations, make sure that you are aware of the dangers"), OPTLINE("--device", "devices or regular-files of the filesystem to be scanned"), + OPTLINE("--noscan", "do not scan the devices from the system, use only the listed ones"), OPTLINE("--help", "print this help"), #if EXPERIMENTAL "", @@ -176,6 +177,7 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) bool to_extent_tree = false; bool to_bg_tree = false; bool to_fst = false; + bool noscan = false; int csum_type = -1; int argc_devices = 0; char **argv_devices = NULL; @@ -191,7 +193,7 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) GETOPT_VAL_ENABLE_BLOCK_GROUP_TREE, GETOPT_VAL_DISABLE_BLOCK_GROUP_TREE, GETOPT_VAL_ENABLE_FREE_SPACE_TREE, - GETOPT_VAL_DEVICE }; + GETOPT_VAL_DEVICE, GETOPT_VAL_NOSCAN }; static const struct option long_options[] = { { "help", no_argument, NULL, GETOPT_VAL_HELP}, { "convert-to-block-group-tree", no_argument, NULL, @@ -204,6 +206,7 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) { "csum", required_argument, NULL, GETOPT_VAL_CSUM }, #endif { "device", required_argument, NULL, GETOPT_VAL_DEVICE }, + { "noscan", no_argument, NULL, GETOPT_VAL_NOSCAN }, { NULL, 0, NULL, 0 } }; int c = getopt_long(argc, argv, "S:rxfuU:nmM:", long_options, NULL); @@ -273,6 +276,10 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) csum_type = parse_csum_type(optarg); break; #endif + case GETOPT_VAL_NOSCAN: + ctree_flags |= OPEN_CTREE_NO_DEVICES; + noscan = true; + break; case GETOPT_VAL_HELP: default: usage(&tune_cmd, c != GETOPT_VAL_HELP); @@ -320,7 +327,7 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) } ret = check_mounted_where(fd, device, NULL, 0, NULL, - SBREAD_IGNORE_FSID_MISMATCH, false); + SBREAD_IGNORE_FSID_MISMATCH, noscan); if (ret < 0) { errno = -ret; error("could not check mount status of %s: %m", device); @@ -345,7 +352,6 @@ int BOX_MAIN(btrfstune)(int argc, char *argv[]) } root = open_ctree_fd(fd, device, 0, ctree_flags); - if (!root) { error("open ctree failed"); ret = 1; From patchwork Tue Jun 13 10:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13278352 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 3F61FC7EE29 for ; Tue, 13 Jun 2023 10:48:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240121AbjFMKsh (ORCPT ); Tue, 13 Jun 2023 06:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238417AbjFMKsg (ORCPT ); Tue, 13 Jun 2023 06:48:36 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473C11AC for ; Tue, 13 Jun 2023 03:48:35 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35D65iNw030504 for ; Tue, 13 Jun 2023 10:48:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=PhXKyqk/JFEDBfM6pbecuTvuacX+ONObJZ9Juljgp30=; b=Jdd7I1oAI8+ADu/9BpRzlMLgWE3IXbXUKptYArvCVO5oLgsbuuTacNnjIa+mgafHOVZk G1bks4NMdOjbSLM5TPHVBW4L1zgzeGHYFwBvOEL68690kED4YHWKdjcARJrU4wDl0UgB aUeAjwViZMm1ALHGBHeVCZ5g3QMVFfS5lbGuqG7zZoPA5rwIl9fyi7oShHyHfiLKE8Fl Lkb9z/ScUjnlpvsCIgcLxMsevAyC/PQa6OPt+9BZ2uGO46tZAKEal8zd/XoEMbvjfgTs DcYAHnNjtdXfKqFdTxKooy1tGqEmNmG1s65ulRhhuURZl+oJQbQk8VB+jcdrImsb56QY qA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4fs1w0pv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:48:34 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35D915Vj021642 for ; Tue, 13 Jun 2023 10:48:34 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2048.outbound.protection.outlook.com [104.47.56.48]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm40fqg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Jun 2023 10:48:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VhiqZlgZeOXIoAXADEyX2QvIVtFgRjp6DaxyVIAMIBSuilmIwdfyR0AmXVvUTwnLFmN6MSj96ILwyipWPNA8fjfBzHHVkxxp1AGnZL0pFU5Pml1XK0aeFRQhkTkkDxwfvviuBqCPG/DKhbmRN49H8dH0a5Mvz3LpnRWcjglgg8V4ALO3AwWT0R55p61n/5sKQVGMvObffDER6zDEOlcJuhxnXzYbSQQspejS60dOSnkxbudXji1OBHmXqUNA1N+A9jFBeJ6zmngpTOgr+EOU5kWdAcTahznPq4CYlkxiw8lclprBlT1GZtt/D88xx9uvyzN2PkkBytEG6+w+T4iEBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PhXKyqk/JFEDBfM6pbecuTvuacX+ONObJZ9Juljgp30=; b=bxwqZah5nvurXtW8zCOsLpGTbMJ4TR2OY4S5GFn95N6o4+7cH9x1E+x48U2skG3DApKbCFxjf4kxjaoOord8I6jKS+a/wqKXQp4HsJJMpLiBiDNGK/I6Bmsc81/5eth8WOvFa56vA/vVJsKH1Vj7jnMlAN87dbdVRP8mcnT9b1SbWkgN/Vd/tOKHSPaxrrv2ZG8Jhbp5+IruK5bbMXuipT8tgMcHHE6u2wotnFOUDUX0gKCqwnDOY0gl8jz1dTO9naa3+aUigkbiNpF3zEZrJzjpK/dC7fThlce1MtUyQgJa0rH4qE5yNov9pgd5jLzJwUjqF2zMcYcoAYBsL5iFig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PhXKyqk/JFEDBfM6pbecuTvuacX+ONObJZ9Juljgp30=; b=mGfg3cw3TN8yfmn5n6lGOtBNyq3/ybA4qp0HTyenlnTwQn3JiRJW+MXmQMnk5x0O/rsfTVl6gaQL64r3lHEFGkjLRKaftSqX/zrSnmnqjvvAgPQX8+qDesMgMvQ5/parjoPTp0jmQfEenKDtI33ayf68bgeIISg1uqCPQVoK5zI= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by IA1PR10MB5900.namprd10.prod.outlook.com (2603:10b6:208:3d4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.38; Tue, 13 Jun 2023 10:48:00 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e%7]) with mapi id 15.20.6477.028; Tue, 13 Jun 2023 10:48:00 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 5/5] btrfs-progs: docs: update btrfstune --noscan option Date: Tue, 13 Jun 2023 18:47:15 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR04CA0010.apcprd04.prod.outlook.com (2603:1096:4:197::11) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|IA1PR10MB5900:EE_ X-MS-Office365-Filtering-Correlation-Id: bdc6a411-880f-4153-513e-08db6bfba7e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dFhABU7E7z/U8Giig7OnbYGQohrUoExjZa1Cob5FNid4fu/rHFbU056cP2Anw0LqpJPSAX6yyu4RjYNDfD7FMkpc1+O7RrgTfmeXiTZ/yL2rcbMuQh6J92oDMYDrkl9HROx+bRQ/+WLgSatcOBytzaINnxLhFD5EWTHcw9BOqUm3FwUnUeyCGapVXz0+Vt48D6MEL+bzwcQkXqYWOsM3wjZn9FwQdXnAe9LeinyCFaQ/aOHrTSpPLiKxoiR9J3LxPVwVG96dckXfV2YiQ0dqlteNzhe2RtIfoWhnMwnVFNeBXfDGbkpsE+H1vAuqQOYyREKvLzvC66Hw2bREvdrH6lV5e/f5aDbLiuK5dvBlE5jrKnsp4t1d8hi0t4kmL9WDTJyV+EhpRXPkHpzHiO+M6ocJE+DoYCL3W+aDxrvpDO0VvikLXDxIUic4H03xkpx/VuHdVgQ6OLSwMiVNvdjasxNxOK5lnFFNS431g17ffycNS449yK9462swq4DNkEtPjNQCARQuIHOwqzARxDlvln1kIvNyMf1J/iFXX4NrbZD7SU9xQhg98DNEAd0rhlWm X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(366004)(39860400002)(396003)(376002)(451199021)(86362001)(4744005)(2906002)(15650500001)(2616005)(83380400001)(26005)(186003)(6506007)(6512007)(478600001)(38100700002)(6486002)(6666004)(41300700001)(8676002)(5660300002)(8936002)(66946007)(66476007)(66556008)(36756003)(316002)(6916009)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F4sDGUL4qNfS9Rao+oiYd7z00Rc1XoZVAldhvsnlVTcuK8HeQ49ouY0lxzu8JXS26s+lxXTfk1YeX4vdo3iQamG6QH9mWLbFFJm2cqXFV83acr5y2k62fYDCKEsKYR2Gc30l3Vjg5p/AWOFAWmlQ1P8TTetCsQGVx9qTjSoEp0mD2q004RrJ9s0/4dbGPPfbJn5/vPdLVQrEMdMToiBEmO4nhwOeF04Wveg3fgcoMqeezy/GB5h9WQze68Zt7ABbGAG5W/bkKSvkeYaFCylGZ3NXTHtIGvpYgzqkQ11CTF1OJzSqKR47J46ly3q+4cpnDjngSE3OuWUGj/+98JtS4wEB01NDIu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rrLJJcQiyjSnc0mWJXcVVmlUWAl7N7/5R+H/jtCONjvdpf0kFezYEWgThchaLaO/HpG3Vu43aZcSOLmTiuiI/B06HOoBec6G/Bd7vGQ9Blk7jYzyXLUJHC6U+QdELONuLbw4JSrkSWOVVYXuVwOSqe60cjnClUxcDFw4UUBJ9UBv430J/dvzOTGY0QtIA== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 2cHIcTtPt1c9CJ/kY+s2LAHqSwFTT47L9xCcjL3DX60eZFglVOdgzaZl8n1oEa2kzBqEBUrB+RdXkTEzVXyItT03/3GO8n9wQfdUgKlGJCnehy1yAdJMt+rKLOQX645yki30sV0Gn0Q/ebVcelt/uivsP8ZKINKrAX2EJiDwQiWzfWZDvpSKvLSpj0y0jPvbTFILW28VIFntvp2YNRS/kunobQzOnxoctxQEjILgN+RDbW1tSooWZSEdXY2UYERa3if+Da9/XNMvLeZjpMjT1efv1CNhHoqgCvja/r2pgy+ybnh5IDb4s8TZOVSbt1wzXztpTxnBWSV08w5+Y6Mbw5dR0fsmAzhr+c4gRXr8UJ/wC+xfqWIfxfQA8h6HAGFdCN7jajr3+ADDGBHaaC5RIsuSET0CIHkRB3En6T8hqcOkYNgvbmamcLzlccOxrRXVA5plLsH2f9CYSSizBEheGPoJjFt3suIGQ1oiVJIwATkjGrssAoYURuvBiRy88zVxgqSL19IycFoCAKHxxRY09mHCjbH/mzcKSZbH901hNWajH9LE4p9AEjiL5vk6ZOYEclT3FIfMvXnFZANu+1erx3vKlo8Jt4uze9jPiMMT7oP1IBjpmmnWgOq2mWNKccj87XT7Qc52dMG59+fClEWr9xNlaILbloxiGOTeyywdJF12n5g7kMWlTw7GOZJo5+TmXATtXQLEjixrHbT3CDidCiILvIMINg236FS8ZXmiUlDvZavf4mP4J8QJSQEB5j2Bfg4gGnMeymEtWJl4shUW0g== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdc6a411-880f-4153-513e-08db6bfba7e0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 10:48:00.1357 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l8jIAeuOSsGOycaixrpN4isZ/YlSDZYIB5PjYIfAJER6nQhcTGd/z6GOsHVUSMDpXIrsBKMclL2AnbL3y4xtgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB5900 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_04,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130096 X-Proofpoint-GUID: xOysMe_UzkpCgHzzNR6nUzbxcHuNwLYp X-Proofpoint-ORIG-GUID: xOysMe_UzkpCgHzzNR6nUzbxcHuNwLYp Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Update the Documentation/btrsftune.rst to carry the new --noscan option. Signed-off-by: Anand Jain --- Documentation/btrfstune.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/btrfstune.rst b/Documentation/btrfstune.rst index 89f4494bbaf0..46793b3d4a77 100644 --- a/Documentation/btrfstune.rst +++ b/Documentation/btrfstune.rst @@ -49,6 +49,10 @@ OPTIONS --device List of block devices or regular files that are part of the filesystem. +--noscan + Do not automatically scan the system for other devices from the same + filesystem, only use the devices provided as the arguments. + -m (since kernel: 5.0)