Message ID | 20230807132626.182101-13-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1465183vqr; Mon, 7 Aug 2023 06:53:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlvpmtjcEts7VQqRtp7T5kSWb0tXDMl+sbBLRS3ErOX80JDFiLfryw60fXkhVgqKJnxuRY X-Received: by 2002:a05:6358:782:b0:134:e952:16a8 with SMTP id n2-20020a056358078200b00134e95216a8mr7063813rwj.24.1691416420361; Mon, 07 Aug 2023 06:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691416420; cv=none; d=google.com; s=arc-20160816; b=IqSYYyLrCm6edcVeZovp8xl15W5CBTYME1jfkFMF28qYnbiM7/fmSmiW8bQketgdAY wYQ98U3ZCh7fTWL3eWaq/x3DvF61HvjamU3kFlG0jLPUr4BQYalzCLFi3lsr8cUdNmxs uaMqW6RRqHLEdWMWXPWBd/ksEmJc9w01o7qOnCwo8uxdqTr82OZcAcL9HzI+KvuyNi7p vtQcJ+ZM3irc9f1W8MUVS0jbOyqwB+WwJv0/DdhK55ehxMhIYqHqzVNmD5g6JDr1vZmw /DCBnsdc115RMHN3liG8YBw4LaYA1Rtg4hQ/Z52TLrN2zAM4AgutObH+QZC+Xo0eDvLs OtwA== 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=4z/daiO88HhZeOEnY3F9QYhLlQO1p3UrY3NiyEq1U7U=; fh=Z2mkFIQPI1atT1PXylFFs5aXkUtGzwkgwqJaEftWDsI=; b=I6QMZ7ImxHOEpjnrYAccZ4W2KCcRSis/01y3CIYyxthu/6UI0aJvMRtRF5cobwk9ms 0Z1+PyerCgDhvyD8nlXLj+G9FB08NA4XbgxCAmmv2YVzqW9ZG7DT2Fr3B/H+U0txNe+5 JieBXOZgmsgC1OubBFaGQJNN7GiJv8reIKPAte52WbYoDkSbCognLnUG0Em1KZVX2uik imyuPuvGVz1DMQOm9btUaLoGu9uyOMZwb0/DGZf6NDk5x9ypxmNUNduMdO4csRVfg7x1 nPZ7Aqi2lZmPu4JYHmTWJZKJk1w745ndLfOI38rOHLmNtUoiPSVtZmZzjlaOwqU9UAUp kNxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kLWym1tp; 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 h5-20020a631205000000b00563fe7f89f1si5594763pgl.189.2023.08.07.06.53.25; Mon, 07 Aug 2023 06:53:40 -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=kLWym1tp; 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 S234233AbjHGNaw (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Mon, 7 Aug 2023 09:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234207AbjHGNaj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Aug 2023 09:30:39 -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 EC8222D58 for <linux-kernel@vger.kernel.org>; Mon, 7 Aug 2023 06:29:37 -0700 (PDT) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.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 507D13F17B for <linux-kernel@vger.kernel.org>; Mon, 7 Aug 2023 13:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691414921; bh=4z/daiO88HhZeOEnY3F9QYhLlQO1p3UrY3NiyEq1U7U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kLWym1tpcF36phHFDefL9y77tzGIPb2o+gsRAA6ZblR3Vl5dh1tvntKF1GwfXgw9H ve5jTFhIg8zYF7qzMGZs0tfSe3lfZIt4HxLv/cZ8Vw2P1KIRgz5u51YUXrmWuzhu1h tnrmMBuCA4hEZAWO+un3Cv69xjl/XqhX/irAvo5BemvCjzCnReZ0VvHJ53rhWsh+dK 0j4WTG4xsi3HNXJKhWpg3AMaia56TGe8csPjUEYoxqK/7YS083SUghGIg3LUOqkYsO uUcYPKiTC761JloRpw9ZVFwUdjXwJpt8Nrno+sAHOmv2M586WEvDjjYDjaieEDtWYF hJRD4mtqj+8jg== Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-52310058f1eso5758838a12.0 for <linux-kernel@vger.kernel.org>; Mon, 07 Aug 2023 06:28:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691414921; x=1692019721; 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=4z/daiO88HhZeOEnY3F9QYhLlQO1p3UrY3NiyEq1U7U=; b=itvqTdL/bHopc8GzREF8nV7ox6AmYeGLv0ix+CAfcl4C5p743jyWGcTg1YyIiSEclm jJ4hWOlPXZzArbckl7zJu6u55SpaZ2XuA3PEz47kLBY71xbutb/O41vcZghYYzsFftQr jaUmN0VoGjf/R5L1Zq7uNhnIFBUr/gG4jGbQRSQVMNbotLM1xHe6OV54XfdGWtcERdAF vVEwy3pKVnjMFj9YZGhMvQ6R4f1ZMmAAa3eaAOT51RTEZ74slXPLSqCy6kQTy8bIo1YE SoCbneox1sJLgFfhze/iQh/oE8VikXgQ11SsGsu2/VGbSYiwlKbgWLAIFafz10xgg0iw /5Cg== X-Gm-Message-State: AOJu0YzNmZ/5O1IgsRSRYvUNSCFdLHVlyUYrW46TZDLnS9J9bkPB3rAv 4To7nkew1LBImQvyVdKFCQrPUR+rUCIgarXQVqkAMVpYzzlDLh5wrbqQCtjcpSwSBiUgf44XlVi 6e0zriS+uoOPD0CFsCgjp/xe6SKZs7qbumlPKPkH1Sg== X-Received: by 2002:a17:906:8a44:b0:99b:cdfd:fb44 with SMTP id gx4-20020a1709068a4400b0099bcdfdfb44mr7381518ejc.9.1691414920939; Mon, 07 Aug 2023 06:28:40 -0700 (PDT) X-Received: by 2002:a17:906:8a44:b0:99b:cdfd:fb44 with SMTP id gx4-20020a1709068a4400b0099bcdfdfb44mr7381510ejc.9.1691414920783; Mon, 07 Aug 2023 06:28:40 -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 lg12-20020a170906f88c00b00992ca779f42sm5175257ejb.97.2023.08.07.06.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 06:28:40 -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, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v10 12/12] ceph: allow idmapped mounts Date: Mon, 7 Aug 2023 15:26:26 +0200 Message-Id: <20230807132626.182101-13-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230807132626.182101-1-aleksandr.mikhalitsyn@canonical.com> References: <20230807132626.182101-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: 1773578663859417301 X-GMAIL-MSGID: 1773578663859417301 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
Aug. 7, 2023, 1:26 p.m. UTC
From: Christian Brauner <brauner@kernel.org> 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 <brauner@kernel.org> 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 18bfdfd48cef..ad6d40309ebe 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");