Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1851372rwd; Fri, 9 Jun 2023 03:12:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HUmURSpWFQbad0BZfQWjqgFMPa2OFDyqa95Po6VNdfd3ldNnr0ZVvQbFbVmsf2WfHPnsM X-Received: by 2002:a05:6e02:4c3:b0:335:8dd:cf16 with SMTP id f3-20020a056e0204c300b0033508ddcf16mr1049685ils.9.1686305519944; Fri, 09 Jun 2023 03:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686305519; cv=none; d=google.com; s=arc-20160816; b=TCqcymtxI+5mJnC0aLiwQta8OGNgniGnNZiYi4++Lp/L8aCLiybRFI5Quz0zEKEYGd RCA4bKfDs96KBNl67U6zHAo1adRGIdkVZbzp+ZSL5WrFysNh6z49bXg/mPP6jFQp7NWv JvSZJt0tMkAnVuffgqw52emb9G627ehVTVxzZPPWZevhEwOH4Q4S8ZyOi4DVCE3Rb965 6jzF5qJY6ogFm1GLmC5KrAZLeC5pjR7m17UR0MGKFn5lPRpd+993+MYEL9J0DdtLc6ig VRaajbqgSP6SBhFHDrSVNOs7RVXpFjxywVo24CBkLir8mSEvFpdakjZp1nxHlK/g2i2i I52Q== 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=QbGnheXMoUoU7EuOckcncmKJSqs6BTa9rIJEwkbRpgw=; b=UPjHRKCxzBzIIGi+fDuosidVEC/lWMI74Rgz5Or4AJne7H0XD7Ycv93HLZTmBoGZ6m iE9Syzl/nyqseu7xCYLVBs9jCxiD8Nl1IXkEL6E1YGBmsQdL9YQsKKegi9r9BoZ+J6lj ifC9sgrapCicYNd3g77Z2QUFe1sKE8Uuu9Sg/QwkPJVGf9qIHR22GScZJEaSwZH8hANj YR3QMHrdun5HuXZ94Y+xM6IeU50omI8/479zJ9DwaflHpDHlPSohEA/7SiX2gGtHErn/ YDddiFlTjskIkLfdjZlGWlme+zQFhErmWchTveF/fe9Rf11PVhUehrLou2uQg/18+1qv uM1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=EG7qu+ND; 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 w4-20020a656944000000b005428f25f67asi2395905pgq.618.2023.06.09.03.11.45; Fri, 09 Jun 2023 03:11:59 -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=EG7qu+ND; 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 S241966AbjFIJ6U (ORCPT + 99 others); Fri, 9 Jun 2023 05:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241817AbjFIJ5t (ORCPT ); Fri, 9 Jun 2023 05:57:49 -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 0B4AA4ED1 for ; Fri, 9 Jun 2023 02:49:47 -0700 (PDT) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.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 59A493F37E for ; Fri, 9 Jun 2023 09:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686303193; bh=QbGnheXMoUoU7EuOckcncmKJSqs6BTa9rIJEwkbRpgw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EG7qu+ND7KZ2jzL4n1LGibYepg09OHojNkMC/cjHh6FgnVuPXt928enhmvpUPbjpY c8l4GAy8yhj+/11hdMKQodH0W7JJ26a23GJcuHetgomGmJ18UAxibtJop2K1Vbzh3r 08W2UYlCHPmbeGKPIjVf4KtpLblVXTHTC+GMPIdaBHSS8Pn0Zf5r1zfIPcDnFKDTFa Vjr64hJARBu0oD8+CsCGnO2Y5KVT2VodQkfzAFS3UfEKD4Qf0lbiiFKDx+5/Vjzhe7 RVFvPsGVNypHVjbMkZGBJTjSukVd0rbJ5aMvi56PJHRv7Y1ixaBtCkKLLnrj/Wa4PX /7jyOgcqeXtLw== Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9749b806f81so146531766b.1 for ; Fri, 09 Jun 2023 02:33:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686303193; x=1688895193; 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=QbGnheXMoUoU7EuOckcncmKJSqs6BTa9rIJEwkbRpgw=; b=UHCmAo91YXLn11wEOYMOUqR91fGLcH4kcPmwcMF/isra0In0KVMo5De0XG7HglzNuB OVd2S2ZYR0ZCPEus60idaqPcz1G8T+1IfsITJJwqR1I40FJoA7mjbPMFpf6384fV3puU RESgsRr8DonOYmvVU/Br1YClbMx53sn70qOqlpDTVVrQLJSQVRoe/yQWIhDEYmCQ+/oV J8csSW8gvXNpSngVvZ/0Ij4/09Go7T2DjjilD9MfOba1w9VQFlVRm7Bq/IVhqupaaGOE usgNhfQ5/SISSw5FWJtlZE6vMTh9GlPAT1y8qPsDunlEXx32b1p27DMMOTcgkoAkcKYj gm5Q== X-Gm-Message-State: AC+VfDzLKIFRog0TXa2l0fr8Ekutk9WGA0QM09lSsGEcLJHMWQycoIc8 Se/QajGTadW0tlnzrGLGMdu/l7v8J98w6iFbgY2P/uwyfHS5EEE5IfodAX+bA/yYawe5cmpvuZL HrvnJsagWqurVgklzJ3tODjazQqGn4nVx+2yMFK6Pug== X-Received: by 2002:a17:906:99c4:b0:977:4b64:f5e8 with SMTP id s4-20020a17090699c400b009774b64f5e8mr1032569ejn.57.1686303193183; Fri, 09 Jun 2023 02:33:13 -0700 (PDT) X-Received: by 2002:a17:906:99c4:b0:977:4b64:f5e8 with SMTP id s4-20020a17090699c400b009774b64f5e8mr1032559ejn.57.1686303193039; Fri, 09 Jun 2023 02:33:13 -0700 (PDT) Received: from amikhalitsyn.local (dslb-002-205-064-187.002.205.pools.vodafone-ip.de. [2.205.64.187]) by smtp.gmail.com with ESMTPSA id e25-20020a170906081900b0094ee3e4c934sm1031248ejd.221.2023.06.09.02.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 02:33:12 -0700 (PDT) From: Alexander Mikhalitsyn To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Christian Brauner , Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Alexander Mikhalitsyn , linux-kernel@vger.kernel.org Subject: [PATCH v6 15/15] ceph: allow idmapped mounts Date: Fri, 9 Jun 2023 11:31:26 +0200 Message-Id: <20230609093125.252186-16-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230609093125.252186-1-aleksandr.mikhalitsyn@canonical.com> References: <20230609093125.252186-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=unavailable 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 3d6d0010d638..aabc8ac90ead 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