Message ID | 20230726141026.307690-12-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp452043vqo; Wed, 26 Jul 2023 07:44:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEOoXViidOYpuiX7ydHlcxZaR8g8vKa04NJzP7lI0p6mfz7OTMSouURodPlRjDODWAe5w2t X-Received: by 2002:a05:6870:d2a0:b0:1bb:6b9b:bc78 with SMTP id d32-20020a056870d2a000b001bb6b9bbc78mr2389955oae.42.1690382693286; Wed, 26 Jul 2023 07:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690382693; cv=none; d=google.com; s=arc-20160816; b=ixFcBXuEyDkMNg5VaUiNBOwicOgyOlmBBSHyv/EYocXNKh2OvYViM1/xaVQdgD7Irs FLQ0HnXqk6ON9JuEVYDB3xqDaVVE+q9aV7Y8OhrmWKCGVc+s+7fQWHCTfjQ6STkZaYqs k03CyYHbfQaZddWsvNLOYGZv1LfjiHDakhhvuaqvdchoW+pbaWhHrWsZVA+fXZa01fm7 WCAzzP08nE/7/4BClmYAUomY5r6TgvSb6eRDfw/QAjztzOrrFZTOFIvoexyFD5V14UoI 82cDTupiQvkyFpScLAaFN1yWgatN4smp5OqvR+dbWMhkndX7KkbcDPsD/ePmGpuPEVPT GdiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V+geJeK43HRcagd4RPosGF8b069CSl1zVYPfJFF5DgU=; fh=4TkUEkUtkmMzuUVnw4jjBfLQ2m58OJnBJO1eZJpOGII=; b=YusRXOYEqhJV3jgm3vF8wu2DZd4XqBUZF8mwIUN5EetwDbUvsP97qM70rm+iALFSGM jTmlDQgMTKG97NIRxNrp8pwFyfW7QPF19nRFTgZfz67MSFfURLvjbbwdUY7zKVxp08RP sV8q+c5nlOaWf8imdo3F/MTQVmL1Z3lpwK93btHbLNQ6Es3UWT2B5HsHtp9n435n2AuD CceBq/MLT8JjQ6S//AsHxMMG5iUgWtMGnoUVmjYqB3XnXazJrpEydLogVy6yk4ut0Q5W VeckiPW+KM9PiCnpo6YIQJ6N/kQytVgmHbb7h8nhtGT2kSKfmoPeWwsNR2SVj80uJDNS wcrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=eJq6wrru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902ebd200b001b81fe65fa3si6480986plg.569.2023.07.26.07.44.39; Wed, 26 Jul 2023 07:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=eJq6wrru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233039AbjGZOMe (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 10:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjGZOLy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 10:11:54 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CB54271C for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 07:11:19 -0700 (PDT) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id BB9BD413D2 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 14:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1690380659; bh=V+geJeK43HRcagd4RPosGF8b069CSl1zVYPfJFF5DgU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eJq6wrruPzn9weL7+AIH2e8i/jQYOM+TuP0puNOlo+4qQgY5/KxDgHxfXHJWMHQrC 1SHyHtRzvy1qH92UmvAYXPPLeY2mvfTFMS0OKgayK5tevnI6LW9cLeX+/t8JpciiFG /5U1uMNYGK3wto4Y1h0KwrrRpTbJkOdu80DE3iz1fgWt2Wi1iOi6VJS9fI3tREuDvk 8p6WUoAtMMNOhIqb6HlgkeVNXO9Rm08BvTF2bf3JjWk+K3TD9NZkqwXFWBYIzWSi4K W7SDQwOy2+FhdWtLebk01uKP0CZn7k+03iLgtQ8ejzIjlC/vXSiwM3kHDqsdeAGAtM t9daEuBSXQdGg== Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3fbfc766a78so34241555e9.3 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 07:10:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690380659; x=1690985459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V+geJeK43HRcagd4RPosGF8b069CSl1zVYPfJFF5DgU=; b=IrGCHw8l7NQl5m6rJ8+Fbx2rmJFSY5Rw6BWyBaue1hP7yauN8MIqinZC4Xvq4czpei Xk2aUs9Hncv6FvGRUrbeAdiILmf7HQPm8cD9RxoQAqwFW3m/Q7+QAFTpUEA/kcTcv9JM cojNRXhTA7IimXLb5pp4XMqUN3MQUxeEseocH88CD1+OndrYjn6OOZZBDYZYGuvz+IpL 3WcK+WPQQxi+K1AVC6RQ2okACmMpNs6boJgrN64RUCtk4T4755olCd0v3rFS6BdSdW+M 1/OKtNCir8JI3qUC+2hIoFOczrYhcnBpZgrecUaujBNQ3syAe8ZNdQNwBZ0IlcXA50P+ YDSg== X-Gm-Message-State: ABy/qLYXCZzeo7s+rKU57OiawK5en0uGj6sCc2NgygCe5/vPBi+uXICC zf7ArKRiQDDVhlK9MsjCeTdiNBoCgOt2uuh8SvtV7l/YdOfh9QAdinyVTk0fBUFtOLY88OxBHq5 fqq6pqk8a0utFiRgmbsOnBc1ol7CLritwGmsV8SCkQixL6i1FwA== X-Received: by 2002:a1c:cc08:0:b0:3fb:dbd0:a7ea with SMTP id h8-20020a1ccc08000000b003fbdbd0a7eamr1439452wmb.37.1690380658870; Wed, 26 Jul 2023 07:10:58 -0700 (PDT) X-Received: by 2002:a1c:cc08:0:b0:3fb:dbd0:a7ea with SMTP id h8-20020a1ccc08000000b003fbdbd0a7eamr1439440wmb.37.1690380658568; Wed, 26 Jul 2023 07:10:58 -0700 (PDT) Received: from amikhalitsyn.local (dslb-088-066-182-192.088.066.pools.vodafone-ip.de. [88.66.182.192]) by smtp.gmail.com with ESMTPSA id k14-20020a7bc30e000000b003fc02219081sm2099714wmj.33.2023.07.26.07.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 07:10:58 -0700 (PDT) From: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton <jlayton@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, Christian Brauner <christian.brauner@ubuntu.com>, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v7 11/11] ceph: allow idmapped mounts Date: Wed, 26 Jul 2023 16:10:26 +0200 Message-Id: <20230726141026.307690-12-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230726141026.307690-1-aleksandr.mikhalitsyn@canonical.com> References: <20230726141026.307690-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772494723008625935 X-GMAIL-MSGID: 1772494723008625935 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
July 26, 2023, 2:10 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com> Now that we converted cephfs internally to account for idmapped mounts allow the creation of idmapped mounts on by setting the FS_ALLOW_IDMAP flag. Cc: Xiubo Li <xiubli@redhat.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> --- fs/ceph/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 49fd17fbba9f..6326ab32e7b3 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -1581,7 +1581,7 @@ static struct file_system_type ceph_fs_type = { .name = "ceph", .init_fs_context = ceph_init_fs_context, .kill_sb = ceph_kill_sb, - .fs_flags = FS_RENAME_DOES_D_MOVE, + .fs_flags = FS_RENAME_DOES_D_MOVE | FS_ALLOW_IDMAP, }; MODULE_ALIAS_FS("ceph");