Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1120491rwd; Wed, 7 Jun 2023 11:15:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/WpySKxSSqJzUB03lvGxA137Ra4boiT4yyKE48ObuPh9uYiAYmEFSUqmeCRefpjUR4/CL X-Received: by 2002:a05:6e02:151:b0:335:7e65:dfa with SMTP id j17-20020a056e02015100b003357e650dfamr8062755ilr.30.1686161712292; Wed, 07 Jun 2023 11:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686161712; cv=none; d=google.com; s=arc-20160816; b=adYkNv1spwE5goFepeB7wiP2jPSzGncBfMsOEwEQYXMb4jSxCtQXCpqyPYuxf5+MId BAke9ihdBFIiDkyOKLGL0VKUvlEdLnCgp110xIsD5KICMoFkX4JHn2Qi2qZY6fqZNapF XE+z/1a9WS8TeIwrRkgaqQ1AqOU3OzzBtGzh+GUBm/QuAuvNtnVO1kRvriUNolCBBkDg KKQdWWFfMtb8vfNetsZVAdjdsqAG7A+JdJBLUBFTNY9aTtiQuH39oNgXNHBpO3NAVqgl FSTUrbXVvUqleam9GQl+qPMiej1x9x5Xz/V9WuQLpHm7nlyZ2fs8NSOxL+PYq0IwhT3P 9Olg== 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=sitF6aKufbc7DklTCjus/+uMnJoHcKEt7G8gHEJda3g=; b=J/dbwJGVez4dfjbqxq1/3UvDZkvmXknD7gydg+6sMxEBafetz/LBjFKXP3C+qktOHx xuXgonEaeV+8zDNf8SZnNxCnv2wdM+q7SC9zcmrb7CxHXlTRuEpH1/+0j/WYc166grXG E9Qkb8ptUft74jS+BJ4OgflfEo0irykPCnLHcEFHJ1AwfnCQ0X31BD0RxcrFUDtyaVzD 4oLjp5/Kn3Wm4nFJIiYKTIKD71j+fOGxIgCz7QU55WMGupzwFs0BGvs9lzOPsTm/Fz5k pOIKJJluBPcQJv3qKnClOYZ6DcdQ2wBQJ3vrNwnfJxgonKhjSMjrk7ojLkVJuqMwbrDx DijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=N7NNSLDJ; 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 q5-20020a656a85000000b0053481a225desi9317186pgu.340.2023.06.07.11.14.59; Wed, 07 Jun 2023 11:15:12 -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=N7NNSLDJ; 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 S229900AbjFGSLy (ORCPT + 99 others); Wed, 7 Jun 2023 14:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbjFGSLK (ORCPT ); Wed, 7 Jun 2023 14:11:10 -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 728201FE6 for ; Wed, 7 Jun 2023 11:11:07 -0700 (PDT) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (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 6C2693F19A for ; Wed, 7 Jun 2023 18:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686161465; bh=sitF6aKufbc7DklTCjus/+uMnJoHcKEt7G8gHEJda3g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N7NNSLDJ2nftMuH2rWNI4p0YhHM5oYWx8agupH1lFLGYd1MM3feMEGYucrtbpmvQa fTQhi9NB/mE/H2zLuCPHSIixNJHs4TXTQsQSbR9vQJQfoZVpDfSjkXAYEDVelxumT7 ONwT8AaBiW0WJpv0+SC1BATzfZV27zu6MQ4kRQv6EMX11w2bi2F0VG7MqRyJlo0W05 00AxeXQsSvyfzA2ptRduOjOtXSJGehDk1vH4v88Um6jY/TkTnLXpmx1w2wDibGk1/2 7tHTRlGqWuO6SAD77WBisl3TC2jn+wrKciiBJLx/p37o7TJYxOgvSRYw5XBz42QpuU oM3esVZOPQ6Ew== Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-50a16ab50e6so1060370a12.0 for ; Wed, 07 Jun 2023 11:11:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686161465; x=1688753465; 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=sitF6aKufbc7DklTCjus/+uMnJoHcKEt7G8gHEJda3g=; b=UJm4fcf7vUUjFnQSGcQO6bNtooPHwp3vTyq5waXEV75IAaa3yqLk4aWiYOpdGSWGzn DvH7A6KXqStH+Q42UY8Ig/d+risMoXyae7FIiwBQqzT8abbz5YVOeaSlPqPGm8XrPhdc lt6Jg6zVA/o/NYtro2WNUdPs3GBKZghzdu1Yzs3BUgY6PaZNaE27+1feWzooCYZw9pBd +elk9ORAVyHaOV6i5frDn+P8XNWaEc1B4ac7sqE1U44c/jbR5+rrmMBW+RM66DSjnSwV xUBskheqqxz222/0K2KAVzZl6bxX7pqSYiwcDZgK0YK10nK19xzzEDtirkAwklJ3E6g1 Dn2w== X-Gm-Message-State: AC+VfDwzqSWk+k2H9N9e35F29HX1L+k6Peb6JPse5gX7b8TdxD+dF6Qn jZwRq+ibwpvLdqp+4SJiT+NK6vt37MN5RqFWhNpRCjRq9AB4deO1cS+XfnyhDdTk6JIrkYg2QAl WyZ/bly6df5ByNAyvEDzUWYv1wpbS0HdgqSwmlIMCHQ== X-Received: by 2002:a17:907:3f9a:b0:96f:8666:5fc4 with SMTP id hr26-20020a1709073f9a00b0096f86665fc4mr8344028ejc.50.1686161464806; Wed, 07 Jun 2023 11:11:04 -0700 (PDT) X-Received: by 2002:a17:907:3f9a:b0:96f:8666:5fc4 with SMTP id hr26-20020a1709073f9a00b0096f86665fc4mr8344006ejc.50.1686161464604; Wed, 07 Jun 2023 11:11:04 -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 oz17-20020a170906cd1100b009745edfb7cbsm7170494ejb.45.2023.06.07.11.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 11:11:04 -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 v4 14/14] ceph: allow idmapped mounts Date: Wed, 7 Jun 2023 20:09:57 +0200 Message-Id: <20230607180958.645115-15-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230607180958.645115-1-aleksandr.mikhalitsyn@canonical.com> References: <20230607180958.645115-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 3fc48b43cab0..4f6e6d57f3f1 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -1389,7 +1389,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