From patchwork Wed Jun 7 09:59:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13270326 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 1C67FC7EE23 for ; Wed, 7 Jun 2023 09:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234969AbjFGJ7w (ORCPT ); Wed, 7 Jun 2023 05:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239332AbjFGJ7t (ORCPT ); Wed, 7 Jun 2023 05:59:49 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC30199D for ; Wed, 7 Jun 2023 02:59:48 -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 3576JrnK011468 for ; Wed, 7 Jun 2023 09:59:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=F45kMKDT9qLokCtRvEO8B2rprbWhXa7H+y3DJalIv2Y=; b=ik+0HGDDlmI4zajvr4VOhXyBBPiKJFnTe9wlkqEPUH0og2LJNyYfr5bZWhHWEfSl2MTO TEwwCuk3YJyQYwccvMpYqkFVDR1owRtv80mcHsxPR0lYWhVJk7GkwcXTWW1kII2Foy8E VM5pYi4I//GyBy1fpfaBZyQUAaoyWyvN4OfwxkppuLE827ddwLTfBrQWULuA8UdYJWgs oYHZyj8/TgoXXjhNlvblGZiwIcN68pWbGHkg+5jZMP/QaQ2MbkxSwMOIC2DH///5x1AG h7MbPIzYNbq7lTJ49PIx+V7fuCuBwGeOodTcDVhjlvmV3Wmfa7zHp/WWRnPN5mkSZ2lL rA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r2a6uscu7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 07 Jun 2023 09:59:47 +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 3579QHDu035860 for ; Wed, 7 Jun 2023 09:59:46 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r2a6r9fx8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 07 Jun 2023 09:59:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jRYqxsx1otp7MIfm7pZi8OuCDt0Uj+8jrJ0/B5W3/fyrcQ519nWFjeHZJSvam9gKqcqAzmcUc48dnLQtsEkHwKnQZxMK1HNn6ns8Tv7vbIObt9ofEPipiN0lEtkzbAwjT1VYV+aDflZK2Uai/i1flzME9U3nIghb2BE9V96ZS66Se37GeHo7MrX3sqb2cvCW7svLRD6ffM833pqlOOTTL5/CeRJW70lPQeN711UkVTquOEnnQJMpQ/ZMZ0WC/I4O3UKtgAls6jBoRLPZWTIpva4erz9gua4h9q9IsYPM35SEAdEb+9PmVrL/iTQsHaUI76KFTIWuziltrORZlRNBHA== 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=F45kMKDT9qLokCtRvEO8B2rprbWhXa7H+y3DJalIv2Y=; b=P2CMut7MueqkL9qVH7O5rKjD2o30iWP22JFOJIwnicj6HqMDVi7Ix4LfGNnWSXQNXp+7UH0JZK+X7e5C+E3DPq0fbTSFiDZAwNsEHCadQhPpOKiuAS4pG3SjtJWoKLBqrHPRj5MeMUCSeW6cYOpzTDgqGSdwHTV1SjCkjCy1tqLGrE21wX7QlxDLw08nZhNs2cZs1KevoKFMSmFD3hCfeCPwsyFNOGDdZYEZzyn/m6hjtT78tNJ0PmGfQnpviMcwKJXPfL3CEmkY5Z0fqrF5OYUyF4XO/CnbrhdTMIjoViJxbdEB2542br6jWlCXYRCEm/bI/Alep31ShhLeiVC2ZA== 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=F45kMKDT9qLokCtRvEO8B2rprbWhXa7H+y3DJalIv2Y=; b=SpAOlN6bc6aPhWitlCg4ZRZQTGVaHiiqB/F4YjkGf3l7uYMSk5zyuRGVcz2Iv0ztl6HsOY7PLXWaJ3uCg4K1f5OuKEcCM+a1Tuujd+vGK4qf4AyFckWazcafi9kWsYo2n6Eqiz5Llwz+FkO2zp5Il2Wxj3xWyH0EcwqAoS+CsZk= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by SA2PR10MB4762.namprd10.prod.outlook.com (2603:10b6:806:114::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 09:59:44 +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.6455.030; Wed, 7 Jun 2023 09:59:44 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Cc: Anand Jain Subject: [PATCH 01/11] btrfs-progs: check_mounted_where declare is_btrfs as bool Date: Wed, 7 Jun 2023 17:59:06 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR04CA0196.apcprd04.prod.outlook.com (2603:1096:4:14::34) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|SA2PR10MB4762:EE_ X-MS-Office365-Filtering-Correlation-Id: d154d41b-1817-4362-b42c-08db673deb87 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cJrsQUa+68+JDNWiLnaF+VRTVdpbQ68TRQVWjSWuqj1ST+F7HCkqUJ7tcdops8UH3mIDvHy7bbJ71yMUtHPu3httc0JzimXCdNT0B/8cbZuu+ATOG3wFVaAxmXO1unItjLW9gebb2FkUjq6sMBiJSICoG8JYYlPr7Ze1WOjgUWqkPGxJQDcAam1tkFnYFXlHxcd6HiTVXbpDHdTj525I8O2xdK3wbdmT2F01qTfJK+Z8J3NQLZrK78ks38kJ9XX3nY9yJDvOZTaSaZexVC5cyq7q6QgDOVsyXapoxLGpffbAKYx58b2UYou+vXr8JDhaJ/LbTf00JMFMwFNKSL1k7NcWekkkQQZrvsg9qP14BC3ZkMRzNpZDHByOmpIrsVmMqIOsCFse3bu5+torzILcetr37Ej9PDg6WCqSuIGleeQyqyG2KMiA7grKWFaiRUCFwvuM5ZIsEz2BJi8iUfopgbJ1nLHzJr+QSxJRTmJn0UePW0rtHJ+PP+j63OeYxOrHlfNDwICUtkPSXQyMZLMi5umT00FHstKbJAxtY9nYkmgrE3NqIY6kKj7J5fwM9wui 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)(346002)(366004)(376002)(396003)(136003)(451199021)(83380400001)(4744005)(2906002)(2616005)(36756003)(86362001)(38100700002)(41300700001)(6486002)(316002)(6666004)(5660300002)(107886003)(8936002)(8676002)(478600001)(66556008)(66946007)(66476007)(6916009)(4326008)(6506007)(6512007)(26005)(186003)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KiAzlMe19ZaxDPmRJ0KaGxMN3xm1RJ9L5Yn9pAja96OahmXHvP7xLNcrNrar2F/GpVcvKjKOmnzWNpwzG6ZNudatqf1ErDRoW0bkT8hawc6a/3DAiAbrQjK/XSyhbRbwj/5rt9T6cur7e9EA1g6bkRGDNU8ErMngTlQjc9vL78YFuEodflBFls+GUT+MOzeOyVp2aSBfN+d35rCiN89mPMzJE28Vpp7mvAByAIIf94w/Eo3NKJDyqawHJgXqn/AwYi8QwzQaGcc3c8nM3M7FY/CdgFrV7AyjTac1rWLvfBA6CuCb+kTBLTaYet1AQqAOmqEkV1RKdT9BojFlDE/uToatRhDcLlP1nZaqLCnWwD5G4dqeNwXD1eVlVxW+RGW/kYp4KwolT/drD4TGMHebbsNp9FiVB20pzUwU22Uqn/kGWMCPsqvS/y/KW6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D3f27rZ9gdRVO6h9O/KmBWfzhMniy8ljjXBjD1XALBud+ee/CuA3f+b3Cs5EjpZ9uxvpBRiCRB8Lkg1jTMGJFbLEF+A== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: DcuOADeW4QF4p4kp23hTH7EJ0t1nWXZlozS9wW0LG7FxX/v3zmkYNAUQgEZf5QKb0NQCUpA2Mu8Y1f3soc4Z76Z+qh7wuLfgbwejCuPJG79IJBU1/LhN4WcrIRDQEXv/SAEJGZF5wrp4lBDsglqWTqlkerIrExwkn0n4oC6WewUWumGjLekerQMAzU2myUlUrUuX+uN7oah4P6TWgUWi3kEsSCFOlbbfc4G2FhD9msJo+xPWUaf1shklUfgamk3JrBcvkzeIV2sIGLosnYRHlBpOgJ0Lj8G2JYJqmzec9Jx5hZvju6mBv3qHE86zzqDQGwvyW6z+tjwKqeba+FnAdSxagjP0j8yHsgZOQrndtfqQaN20FvBJwgIr/sBqxNgySRjKDKVV7P/hrW1mJXk9b63MpkdygSjwER9Pb/QFaOeXakx8knHmTZTlvPiQ3coz3DsNBFG6H4iZx76xYAu7TBYQyXyQ2+UNCchb2393o+2BoIWU3v+4a/qDbbYhb9d0ueqZDo9G+U9cy5azX9Wp3czUcylfnOwtGaEyVIGkwHw+j97RCUXYVEeo4w/VeNficznSy7HOHjc6f/dL4IIxqT4NHIR2p6WckcIdKv6jczdVzsaZ0Qau6/+sesZ/lOq+5lXbl1ATjLH85vyMc4mm1+vQXSYRIAGwa3stoG5QVP0ymPEssf54IxQs1tUcahw4c8QqDGDexUpXfcoCQaCatDUfc4PhyjEfxfGN2B6tS9F1MJX242gKE2tuQ0ep18X8 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d154d41b-1817-4362-b42c-08db673deb87 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 09:59:44.6015 (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: pHQ8/ENkUooc5ERONnJs5IsbgMb/H0HZPsabJL8mx7ytnbspR2n06cdAdLFPCDKngSL8xJgoUvvvRbmJ/bJi/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4762 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-07_06,2023-06-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306070081 X-Proofpoint-GUID: DaciZ5dBkBBRTEOgP_oLBnRDfB5PnoxK X-Proofpoint-ORIG-GUID: DaciZ5dBkBBRTEOgP_oLBnRDfB5PnoxK Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Signed-off-by: Anand Jain --- common/open-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/open-utils.c b/common/open-utils.c index d4fdb2b01c7f..01d747d8ac43 100644 --- a/common/open-utils.c +++ b/common/open-utils.c @@ -57,7 +57,7 @@ int check_mounted_where(int fd, const char *file, char *where, int size, { int ret; u64 total_devs = 1; - int is_btrfs; + bool is_btrfs; struct btrfs_fs_devices *fs_devices_mnt = NULL; FILE *f; struct mntent *mnt;