Message ID | TYCP286MB20661F87B0C796738BDC5FBEC0709@TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM |
---|---|
Headers | show
Return-Path: <ceph-devel-owner@vger.kernel.org> 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 214DBC77B7C for <ceph-devel@archiver.kernel.org>; Sun, 7 May 2023 17:53:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231343AbjEGRxo (ORCPT <rfc822;ceph-devel@archiver.kernel.org>); Sun, 7 May 2023 13:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbjEGRxn (ORCPT <rfc822;ceph-devel@vger.kernel.org>); Sun, 7 May 2023 13:53:43 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2101.outbound.protection.outlook.com [40.92.99.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 953802D57 for <ceph-devel@vger.kernel.org>; Sun, 7 May 2023 10:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cR8WBqlxlJqI7UEj77R47so7hR5blckm6Q2+4LbmwW7sTFjEAuRCooJwJ7wH8LbCjpostOc06fs1cdJQCJr19qhNPWn49XfUVFPIWl5YA3fR+csDaXAsqtXFLAXReRDi1ws3maU0zW5gm0K607IV9B2VpwVQkjiKy9CO8NuBWFA8imF2NQpbKwhx3rpg3Dk5/UpEZAKf4Ma+ugMO4vYd7bc74O8AEc4tvJIy0gGGKUsFhnZMxmzBQwVAmMQo7zwbvMk+Gy6DlqSapS4Ez10eBSUaJ6yFmu7EYYMIIwpwjho5sa2eopKd9vy6/N8BJpLgGRFRNb0JWlNvGbCVFIcxqw== 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=rT1DJOD7FmvJT0n3mxAb+uknX/WG7ithkJTMQvCrr1k=; b=NXfyGxPBoGi3g6D9UAjQh6opDPImV8usoQaQKmBWX6vJO3XxVORor8OuMBO0TpBi9qgUuq11sbyr4mv5NkFgJH/WoM7XsgU9vr9+R9Yl8QIoj3aGtcS8jUO1REQGhX4Gi03YqXLrZYJ8ivftcA1bCzJlyd1TuN/yQg402lr4zQErN5TCgSuvnfZ9zftchJIKid0GuI1o+nxvO6g2irq0D3ijwWxY4tsRQSC/TFi/9fPTDUjFb/QULRGUgl0rI8jbmADD7PBTuvu7b1me1RftMBCqnxvS3m9dTI6pmSENYuxiD1Dsdri5M2rDFnQ6Fmw3VyYLrBlSImKyk04lKI6X0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rT1DJOD7FmvJT0n3mxAb+uknX/WG7ithkJTMQvCrr1k=; b=H93IGqLDpXjfF40lpVdNmEaNBoorqSTbC86pQ1zfbUUcYmWh8dFh5nRwgaIibkWUiJuNEInI3AE7C/BhBmarWuBWhnOBx/aty5ADO7bJbqAw2HCjDjtYRtgz6H+FoSZI3H7JbjmWuK4BXLkphEo802vv/TQwz8P7tYtWUZ9qoZmxTKreSBKWDUdZ/9sKj9r8zXN/CGjPwjTitKQ3sVzXIVGVxqCSCrC5PLWLU0K/Hrcy+fHctfSVGoT+I9EfabUK1oSoUHtSjMzUlgdJzQF77vXU+Xgk6W1wTBlOSs+bDIViWmQ+4YHHdlT7RTmRhfmlGuuVoLHEvhSZtTzvE+gVwg== Received: from TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::14) by OS3P286MB2567.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1fa::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Sun, 7 May 2023 17:53:39 +0000 Received: from TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM ([fe80::d9fd:1e8f:2bf4:e44]) by TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM ([fe80::d9fd:1e8f:2bf4:e44%6]) with mapi id 15.20.6363.032; Sun, 7 May 2023 17:53:39 +0000 From: Hu Weiwen <huww98@outlook.com> To: ceph-devel@vger.kernel.org, Xiubo Li <xiubli@redhat.com>, Ilya Dryomov <idryomov@gmail.com> Cc: Venky Shankar <vshankar@redhat.com>, Hu Weiwen <sehuww@mail.scut.edu.cn> Subject: [PATCH 0/3] ceph: account for name and fsid in new device spec Date: Mon, 8 May 2023 01:53:00 +0800 Message-ID: <TYCP286MB20661F87B0C796738BDC5FBEC0709@TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [66Atucu1z4JHINj6O5s/sj5qYwFaqOXN] X-ClientProxiedBy: BYAPR01CA0028.prod.exchangelabs.com (2603:10b6:a02:80::41) To TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::14) X-Microsoft-Original-Message-ID: <20230507175300.2253-1-huww98@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCP286MB2066:EE_|OS3P286MB2567:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d958035-973c-4a7f-0ba0-08db4f23fc16 X-Microsoft-Antisp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M8OEDAZF0h7w1KOFYqW0KSstqMLZ8b+EjF39iBTjg+KN7hofCc5CZCJtIc6LbxnzXS080php4gZzXhYo+LgWn49lStp6UDETl2lPTVfsJQMG51m56Z3mvL8d9/PkhlNwr70+kACErLEmkHoL/wUjccMxLjYQfKHaCdl4AM6CUlyOdd7DNRW1xSh1iwiaEPT09P/ddAsUY+HLda/ucpjnam87LMoyQrYNk0wYNVaMH5jV0nTlwSTzdR8uYrFqlJw4pX7TX7+KNFWlihFROrwalXSf5hPBUKo9zMTHZ5GHqE8hd6wow/OydZ4hvF9FHyIp7wINbRkgxajtFK+6WhfyRTixHXE7Wj4CgYQO5iWD1Z6c6TTXzevvSQfGu/wsqfmjQvaehSRvizIbE+UlUr5Glt9TIc14pdEn3ObBF/JCUu0SoATB6oIP3GNnwceoVf7mXzpX+EvMPH0CaqZigTlcEJZAhnvCyntsUezhejUkFG+XhybGkbR9/pLAHQjFs2R5MyCDwKMcAmIrtg/G5VQsuZLLSnAfERrxqibh9LFCm3cVVSrEzR12utzEoLfOmQLK5wf3atvQ6xgJknlOvwt1RIBXl+reH4BS5JAgDNsM8JMo8hNvLjPU/skJ25cqFqt6FE+IYXBmu27xVsxXvGxaPiRzulj+rPZPk4ba74Ayhl7RDnn0K6UpGXQ4vpFgxB6B8NuSUgFsWK/7sCYh8In1ye5rUd4t9SB5tU65V4YkJIUtAug8aFH9leWRslYWJGD9u+C1jBjmc/2TUFwyHlnhFwGfbLpu943AJB/yWEfJTgTWe3Wye56Fy8g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d958035-973c-4a7f-0ba0-08db4f23fc16 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB2066.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2023 17:53:39.4510 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB2567 Precedence: bulk List-ID: <ceph-devel.vger.kernel.org> X-Mailing-List: ceph-devel@vger.kernel.org |
Series |
ceph: account for name and fsid in new device spec
|
expand
|
On 5/8/23 01:53, Hu Weiwen wrote: > From: Hu Weiwen <sehuww@mail.scut.edu.cn> > > We have name and fsid in the new device spec format, but kernel just > discard them. Instead of relying on the mount.ceph helper, we should do > this directly in kernel to ensure the options and device spec are > consistent. And also avoid any confusion. > > Hu Weiwen (3): > ceph: refactor mds_namespace comparing > ceph: save name and fsid in mount source > libceph: reject mismatching name and fsid > > fs/ceph/super.c | 51 +++++++++++++++++++++++++----------------- > net/ceph/ceph_common.c | 26 ++++++++++++++++----- > 2 files changed, 52 insertions(+), 25 deletions(-) > Will apply this patch series to the testing branch and run the test. Thanks Weiwen - Xiubo
From: Hu Weiwen <sehuww@mail.scut.edu.cn> We have name and fsid in the new device spec format, but kernel just discard them. Instead of relying on the mount.ceph helper, we should do this directly in kernel to ensure the options and device spec are consistent. And also avoid any confusion. Hu Weiwen (3): ceph: refactor mds_namespace comparing ceph: save name and fsid in mount source libceph: reject mismatching name and fsid fs/ceph/super.c | 51 +++++++++++++++++++++++++----------------- net/ceph/ceph_common.c | 26 ++++++++++++++++----- 2 files changed, 52 insertions(+), 25 deletions(-)