Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1103940rwb; Wed, 26 Jul 2023 07:40:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlECc65Pj5W3tJ3gyoUYNVXzNspDbNK/zJeHaCMwOiMumd70OpEWnbfXmnP7ku/Q/bFFsnq9 X-Received: by 2002:a05:6358:528e:b0:134:e422:c500 with SMTP id g14-20020a056358528e00b00134e422c500mr2962360rwa.27.1690382411145; Wed, 26 Jul 2023 07:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690382411; cv=none; d=google.com; s=arc-20160816; b=S8neU6seLTes7D7Av3Q/dNS0gVbq8bYAePwcP5HdyoKaUVUJ1+gXJYcGX2amE+chdY ccLHz56Gf6zDBNyZ/RLSREz544AzHEkXz4dJDJj+4/x+omstbGwGpDZssng3M4XruuqG MwqGWwpc6vDcFmnw6EfpfKh5Sx3JTkpFIG7VM6lmrQinlxlBH/nh8LVHzN9CcbWv9PZy Axc6Pu2//FT4qtrKt8kJOfR7/yfY9Y5F1d4V0fHANqtjNl875eZBW2ck/TAtJ1q8WdJd VSD36ODMmAwg4PAZ3Rec69ompkIBostx4uaarUbODfJIg349gTAI9UKiXiHgzYMVwztk oyig== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu30-20020a63295e000000b00543c84bf588si13392192pgb.473.2023.07.26.07.39.57; Wed, 26 Jul 2023 07:40:11 -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 S234465AbjGZOMd (ORCPT + 99 others); Wed, 26 Jul 2023 10:12:33 -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 ); 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 ; 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 ; 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 ; 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 To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Christian Brauner , Alexander Mikhalitsyn , 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Brauner 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 Cc: Jeff Layton Cc: Ilya Dryomov Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner Signed-off-by: Alexander Mikhalitsyn --- 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"); -- 2.34.1